You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# strategyrequire'warden'Warden::Strategies.add(:password)dodefvalid?params['user'] && params['user']['login'] && params['user']['password']enddefauthenticate!user=User.firstlogin: params['user']['login'],password: params['user']['password']ifuser.nil?throw(:warden,message: "The username you entered does not exist.")elsifuser.authenticate(params['user']['password'])success!(user)elsethrow(:warden,message: "The username and password combination ")endendend
As i understood debugging the app, the password strategy successfully autheticates the user, but it doesn't put serialized user to the session.
This code worked on 0.3.2, but fails on 1.0.0.
The text was updated successfully, but these errors were encountered:
As i understood debugging the app, the password strategy successfully autheticates the user, but it doesn't put serialized user to the session.
This code worked on 0.3.2, but fails on 1.0.0.
The text was updated successfully, but these errors were encountered: