Fix GHSA-vx32-x96w-qq65
This commit is contained in:
1 parent
63eae9292e
commit
f7cf4e4dd2
6 files changed
+12
-13
No files matched your search
@@ -51,8 +51,14 @@ class Auth::SessionsController < Devise::SessionsController
|
||||
def find_user_from_params
|
||||
user = User.authenticate_with_ldap(user_params) if Devise.ldap_authentication
|
||||
user ||= User.authenticate_with_pam(user_params) if Devise.pam_authentication
|
||||
user ||= User.find_for_authentication(email: user_params[:email])
|
||||
user
|
||||
|
||||
if user.present?
|
||||
@password_verified_externally = true
|
||||
return user
|
||||
end
|
||||
|
||||
user = User.find_for_authentication(email: user_params[:email])
|
||||
user if user&.encrypted_password.present?
|
||||
end
|
||||
|
||||
def user_params
|
||||
|
||||
Reference in new issue
Block a user