From 4fd1f6246ddc272192b293a5e5d5cb9dbd3e1cdf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 12:16:07 -0400 Subject: correctly use Confirm_address darcs-hash:20080622161607-34904-d8e042b80fe6acd3cb6ad763216a0b1817752cac.gz --- actions/register.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index 2bb4f12f0..862ca2a78 100644 --- a/actions/register.php +++ b/actions/register.php @@ -120,10 +120,11 @@ class RegisterAction extends Action { if ($email) { - $confirm = new Confirm_email(); + $confirm = new Confirm_address(); $confirm->code = common_good_rand(16); $confirm->user_id = $user->id; - $confirm->email = $email; + $confirm->address = $email; + $confirm->address_type = 'email'; $result = $confirm->insert(); if (!$result) { -- cgit v1.2.3-54-g00ecf