lib/omniauth/strategies/multi_password.rb in omniauth-multipassword-2.0.0.rc1 vs lib/omniauth/strategies/multi_password.rb in omniauth-multipassword-2.0.1
- old
+ new
@@ -42,11 +42,11 @@
@authenticators ||= []
@authenticators << [klass, args]
end
def callback_phase
- username = request[username_id].to_s
- password = request[password_id].to_s
+ username = request.params[username_id.to_s].to_s
+ password = request.params[password_id.to_s].to_s
if authenticate(username, password)
super
else
fail!(:invalid_credentials)
end