Using Clearance::CustomPasswordStrategy, how do I implement the authenticated? method? There are no parameters, so I don’t have access to the login id or password that I’m supposed to be authenticating against.
Edit: Documentation for CustomPasswordStrategy is not complete:
- authenticated? method takes a password parameter
- all you have to do is compare it to ‘encrypted_password’ which is provided by the Clearance gem
At least, that’s what it looks like to me.