sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

problem with login with an incorrect email/login or a bad password #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to log in with nonexisting user login or existing user with bad 
password

What is the expected output? What do you see instead?
expected output: "incorrect login or password, try again" message;
i see instead: 

"PHP Error

Description

Undefined variable: logintype"

(this variable is set to 2 in UserModule.php)

or (in the case of bad password and existing user):

"Fatal error: Undefined class constant 'ERROR_STATUS_NOTACTIV' in 
C:\Users\Project 
Manager\workspace\f\f\protected\modules\user\models\UserLogin.php on line 
69"

If login and password are correct, it works.

Original issue reported on code.google.com by rmlod...@gmail.com on 8 Apr 2010 at 7:04

GoogleCodeExporter commented 9 years ago
line 30 in UserIdentity.php: change "$logintype" into "$loginType" ...
line 69 in UserLogin.php: change "ERROR_STATUS_NOTACTIV:" into 
"ERROR_STATUS_NOTACTIVE:"

regards

Original comment by rmlod...@gmail.com on 8 Apr 2010 at 7:14

GoogleCodeExporter commented 9 years ago
line 72 in UserLogin.php "BAN" -> "BANNED"

Original comment by rmlod...@gmail.com on 8 Apr 2010 at 7:16

GoogleCodeExporter commented 9 years ago
are you sure you are using r58? This should be fixed already. thank you for 
reporting!

Original comment by thyseus on 8 Apr 2010 at 8:14