Results 1 to 2 of 2

Thread: How to check user is validated?

  1. #1

    Exclamation 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. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    I would create a custom filter that does the check. It intercepts all URLs except for the URL that updates the status.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •