appmarket: Check user exits before checking password

This commit is contained in:
Daniel Molina committed 2012-09-26 16:12:21 +02:00
1 parent 05feb84b5e
commit 6d9cec21d9
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ class User
"status" => "enabled"
)
if check_password(user, password)
if user && check_password(user, password)
return user
else
return nil