Topic: restful authentication -- invalid vs not activated
The standard session creation controller provided by the restful authentication plugin looks like this:
self.current_user = User.authenticate(params[:login], params[:password])
flash[:notice] = "Logged in successfully"
redirect_to_index("check your email to activate your account")
Is there a way to differentiate an invalid login from somebody who just hasn't activated their account? What kind of condition can I use in an elsif to tell the difference?