mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Clean sunstone-server.rb (#194)
Signed-off-by: Frederick Borges <fborges@opennebula.io> (cherry picked from commit fef3c42e60ff6c9b096ea73785ed84381e41c51a)
This commit is contained in:
parent
7e687b9a58
commit
afcc7159fd
@ -381,7 +381,6 @@ helpers do
|
||||
if !two_factor_auth_token || two_factor_auth_token == ""
|
||||
return [202, { code: "two_factor_auth", uid: user.id }.to_json]
|
||||
end
|
||||
serverResponse =
|
||||
isTwoFactorAuthSuccessful = false
|
||||
if isHOTPConfigured && Sunstone2FAuth.authenticate(user[TWO_FACTOR_AUTH_SECRET_XPATH], two_factor_auth_token)
|
||||
isTwoFactorAuthSuccessful = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user