Fix some rubocop style issues (#5730)
This commit is contained in:
parent
2151fd3150
commit
3e90987c8b
7 changed files with 10 additions and 9 deletions
|
@ -62,7 +62,7 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
|
||||
if user_params[:otp_attempt].present? && session[:otp_user_id]
|
||||
authenticate_with_two_factor_via_otp(user)
|
||||
elsif user && user.valid_password?(user_params[:password])
|
||||
elsif user&.valid_password?(user_params[:password])
|
||||
prompt_for_two_factor(user)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue