diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-30 08:44:52 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-30 08:44:52 -0400 |
commit | 15a089f46efa0cf0dad7959af2967dccd9a7b8e6 (patch) | |
tree | 44b4845deb80062cb59d1b951f2ad27f8ffb42b7 /actions/recoverpassword.php | |
parent | d1660b3c4d50973bb578912880af2e7cca78ee93 (diff) |
log a warning on recovery of old recovery codes
darcs-hash:20080930124452-5ed1f-31cc4ff18994880f9ab36b57cdfc6d9fb19b99d1.gz
Diffstat (limited to 'actions/recoverpassword.php')
-rw-r--r-- | actions/recoverpassword.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index 0f3901543..1f2cff197 100644 --- a/actions/recoverpassword.php +++ b/actions/recoverpassword.php @@ -85,6 +85,9 @@ class RecoverpasswordAction extends Action { # Note: it's still deleted; let's avoid a second attempt! 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. ' . 'Please start again.')); return; |