Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Can we have multiple login forms in spring security?

 
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All...

I tried using 2 login forms in spring security. Every thing is fine..
but for mobile login.. when user is providing wrong user_id or password it is redirecting to desktop authentication-failure-url only...

any idea where I am wrong..
or
does spring security supports multiple login-forms..? pelase help.. here is the security file

 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using the error-page attribute of the login-form tag.

Tell us what happens with that.

Mark
 
Kiran Gaddam
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replay mark,

Bt there is no attribute like error-page, when I click ctrl_space in security:form-login...

What am I missing
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Kiran Gaddam wrote:Thanks for the replay mark,

Bt there is no attribute like error-page, when I click ctrl_space in security:form-login...

What am I missing



Maybe that was a tag in a previous version of Spring Security that I remember, it is authentication-failure-url, which is what you are using and that is failing. So I don't know. Good Luck.

Mark
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic