mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
appmarket: Check user exits before checking password
This commit is contained in:
1 parent
05feb84b5e
commit
6d9cec21d9
1 file changed
+1
-1
@@ -178,7 +178,7 @@ class User
|
||||
"status" => "enabled"
|
||||
)
|
||||
|
||||
if check_password(user, password)
|
||||
if user && check_password(user, password)
|
||||
return user
|
||||
else
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user