]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use two-arg constructor for confirmation code
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 30 Sep 2008 13:05:30 +0000 (09:05 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 30 Sep 2008 13:05:30 +0000 (09:05 -0400)
darcs-hash:20080930130530-5ed1f-48d4d4a503a6bb37c91d828139d652a272b9734a.gz

actions/recoverpassword.php

index 1f2cff197513796e858e6749c3592bf7372cca8a..c9813bcd08b678b4d2a4a40bd8db8107cb096cc5 100644 (file)
@@ -50,7 +50,7 @@ class RecoverpasswordAction extends Action {
        function check_code() {
 
                $code = $this->trimmed('code');
-               $confirm = Confirm_address::staticGet($code);
+               $confirm = Confirm_address::staticGet('code', $code);
 
                if (!$confirm) {
                        $this->client_error(_('No such recovery code.'));