Announcement Announcement Module
Collapse
No announcement yet.
How to check user is validated? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to check user is validated?

    I am using spring security for authentication, however I need to add a check against a status field to see if the user
    has validated their email address. If the user has not validated it should redirect to another page that asks the users to check their email.

    Is there some option to redirect to a different url in this situation? or some other meaningful way to do this?

    Code:
    In Security.xml
    		<form-login login-page="/signin" 
    			login-processing-url="/signin/authenticate" 
    			authentication-failure-url="/signin?param.error=bad_credentials" />
    This is kind of urgent as our application went live and is currently wide open. Please help!!!

  • #2
    I would create a custom filter that does the check. It intercepts all URLs except for the URL that updates the status.

    Comment

    Working...
    X