summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-22 12:32:41 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-22 12:32:41 -0400
commit8a170ed8fd014cb7640b04c535a359b3275681fd (patch)
tree9dcfbd67db4df4d5930d92b8d13d60002a2ba37d /actions
parent1906237ddc5c74e385dd6c722457dfc819937114 (diff)
special function for generating confirmation codes
darcs-hash:20080622163241-34904-199b3654328d78c0b9fe2fa85a3ecc1ab0b1262a.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/profilesettings.php2
-rw-r--r--actions/register.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index c14a3f640..95f625de9 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -140,7 +140,7 @@ class ProfilesettingsAction extends SettingsAction {
$confirm = new Confirm_address();
- $confirm->code = common_good_rand(16);
+ $confirm->code = common_confirmation_code(128);
$confirm->user_id = $user->id;
$confirm->address = $email;
$confirm->address_type = 'email';
diff --git a/actions/register.php b/actions/register.php
index 862ca2a78..31c8fea70 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -121,7 +121,7 @@ class RegisterAction extends Action {
if ($email) {
$confirm = new Confirm_address();
- $confirm->code = common_good_rand(16);
+ $confirm->code = common_confirmation_code(128);
$confirm->user_id = $user->id;
$confirm->address = $email;
$confirm->address_type = 'email';