use $newpassword instead of $password consistently
darcs-hash:20080624224030-34904-a2a50cfcadba05799094574201223907e6e423a6.gz
This commit is contained in:
parent
d367982253
commit
77d9a12ef6
|
@ -204,14 +204,14 @@ class RecoverpasswordAction extends Action {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$password = $this->trimmed('newpassword');
|
$newpassword = $this->trimmed('newpassword');
|
||||||
$confirm = $this->trimmed('confirm');
|
$confirm = $this->trimmed('confirm');
|
||||||
|
|
||||||
if (!$password || strlen($password) < 6) {
|
if (!$newpassword || strlen($newpassword) < 6) {
|
||||||
$this->show_password_form(_t('Password must be 6 chars or more.'));
|
$this->show_password_form(_t('Password must be 6 chars or more.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($password != $confirm) {
|
if ($newpassword != $confirm) {
|
||||||
$this->show_password_form(_t('Password and confirmation do not match.'));
|
$this->show_password_form(_t('Password and confirmation do not match.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user