forked from GNUsocial/gnu-social
use two-arg constructor for confirmation code
darcs-hash:20080930130530-5ed1f-48d4d4a503a6bb37c91d828139d652a272b9734a.gz
This commit is contained in:
parent
15a089f46e
commit
ce1002c7be
@ -50,7 +50,7 @@ class RecoverpasswordAction extends Action {
|
|||||||
function check_code() {
|
function check_code() {
|
||||||
|
|
||||||
$code = $this->trimmed('code');
|
$code = $this->trimmed('code');
|
||||||
$confirm = Confirm_address::staticGet($code);
|
$confirm = Confirm_address::staticGet('code', $code);
|
||||||
|
|
||||||
if (!$confirm) {
|
if (!$confirm) {
|
||||||
$this->client_error(_('No such recovery code.'));
|
$this->client_error(_('No such recovery code.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user