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
@@ -38,7 +38,7 @@ module Auth::TwoFactorAuthenticationConcern
|
||||
def authenticate_with_two_factor
|
||||
if user_params[:email].present?
|
||||
user = self.resource = find_user_from_params
|
||||
prompt_for_two_factor(user) if user&.external_or_valid_password?(user_params[:password])
|
||||
prompt_for_two_factor(user) if user && (@password_verified_externally || user.valid_password?(user_params[:password]))
|
||||
elsif session[:attempt_user_id]
|
||||
user = self.resource = User.find_by(id: session[:attempt_user_id])
|
||||
return if user.nil?
|
||||
|
||||
Reference in new issue
Block a user