Skip to content

Commit

Permalink
[WiP] Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jan 27, 2025
1 parent e736363 commit 5899350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/devise/strategies/two_factor_ldap_authenticatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def authenticate!
protected

def valid_params?
params[scope] && params[scope][:password].present?
params[scope].is_a?(Hash) && params[scope][:password].present?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/devise/strategies/two_factor_pam_authenticatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def authenticate!
protected

def valid_params?
params[scope].respond_to?(:[]) && params[scope][:password].present?
params[scope].is_a?(Hash) && params[scope][:password].present?
end
end
end
Expand Down

0 comments on commit 5899350

Please sign in to comment.