log a warning on recovery of old recovery codes

darcs-hash:20080930124452-5ed1f-31cc4ff18994880f9ab36b57cdfc6d9fb19b99d1.gz
This commit is contained in:
Evan Prodromou 2008-09-30 08:44:52 -04:00
parent d1660b3c4d
commit 15a089f46e

View File

@ -85,6 +85,9 @@ class RecoverpasswordAction extends Action {
# Note: it's still deleted; let's avoid a second attempt! # Note: it's still deleted; let's avoid a second attempt!
if ((time() - $touched) > MAX_RECOVERY_TIME) { if ((time() - $touched) > MAX_RECOVERY_TIME) {
common_log(LOG_WARNING,
'Attempted redemption on recovery code ' .
'that is ' . $touched . ' seconds old. ');
$this->client_error(_('This confirmation code is too old. ' . $this->client_error(_('This confirmation code is too old. ' .
'Please start again.')); 'Please start again.'));
return; return;