function checkCode()
{
$code = $this->trimmed('code');
- $confirm = Confirm_address::staticGet('code', $code);
+ $confirm = Confirm_address::getKV('code', $code);
if (!$confirm) {
// TRANS: Client error displayed when password recovery code is not correct.
return;
}
- $user = User::staticGet($confirm->user_id);
+ $user = User::getKV($confirm->user_id);
if (!$user) {
// TRANS: Server error displayed trying to recover password without providing a user.
common_ensure_session();
$user_id = $_SESSION['tempuser'];
if ($user_id) {
- $user = User::staticGet($user_id);
+ $user = User::getKV($user_id);
}
return $user;
}
$this->elementStart('li');
// TRANS: Field label for password reset form where the password has to be typed again.
$this->password('confirm', _('Confirm'),
- // TRANS: Ttile for field label for password reset form where the password has to be typed again.
+ // TRANS: Title for field label for password reset form where the password has to be typed again.
_('Same as password above.'));
$this->elementEnd('li');
$this->elementEnd('ul');
'have been sent to the email address registered to your ' .
'account.');
$this->success = true;
- $this->showPage();
} catch (Exception $e) {
$this->success = false;
+ $this->msg = $e->getMessage();
}
+ $this->showPage();
}
function resetPassword()