mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 06:55:04 +00:00
Fix error in TwoFactorPamAuthenticatable
when handling invalid params (#33746)
This commit is contained in:
parent
e97335191d
commit
ea743d68f3
|
@ -22,7 +22,7 @@ module Devise
|
|||
protected
|
||||
|
||||
def valid_params?
|
||||
params[scope] && params[scope][:password].present?
|
||||
params[scope].respond_to?(:[]) && params[scope][:password].present?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user