summaryrefslogtreecommitdiff
path: root/actions/recoverpassword.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:14:37 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:14:37 -0400
commitf374e924f51d50a601bef4beeb138665374485b0 (patch)
tree8fdfacbdb8fcd1ecfcd7e5d9d2214b4281d9eb1f /actions/recoverpassword.php
parent96e6df323bf1b0b15a50ed56f1526180bfb33093 (diff)
type -> address_type
darcs-hash:20080624221437-34904-746bd79dbef949c16095b9b44a9a721288abb989.gz
Diffstat (limited to 'actions/recoverpassword.php')
-rw-r--r--actions/recoverpassword.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php
index 9be3c4580..edfa9194d 100644
--- a/actions/recoverpassword.php
+++ b/actions/recoverpassword.php
@@ -46,7 +46,7 @@ class RecoverpasswordAction extends Action {
function check_code() {
$code = $this->trimmed('code');
$confirm = Confirm_address::staticGet($code);
- if ($confirm && $confirm->type == 'recover') {
+ if ($confirm && $confirm->address_type == 'recover') {
$user = User::staticGet($confirm->user_id);
if ($user) {
$result = $confirm->delete();
@@ -158,7 +158,7 @@ class RecoverpasswordAction extends Action {
$confirm = new Confirm_address();
$confirm->code = common_confirmation_code(128);
- $confirm->type = 'recover';
+ $confirm->address_type = 'recover';
$confirm->user_id = $user->id;
$confirm->address = $user->email;