summaryrefslogtreecommitdiff
path: root/modules/user/controllers/password.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-28 15:38:39 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-28 15:38:39 -0800
commite3e72ca4da0375d88b86ba69b6596b10be164e23 (patch)
treef32855f9416252b474ab8d598a345fdcf1455b7d /modules/user/controllers/password.php
parentf28b80fcf43e02ca65f419eb6774321dc30a2a37 (diff)
parentfd94f4bec21a7deaa86d468da704a048d2be751e (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/user/controllers/password.php')
-rw-r--r--modules/user/controllers/password.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/controllers/password.php b/modules/user/controllers/password.php
index f5190974..38fa66be 100644
--- a/modules/user/controllers/password.php
+++ b/modules/user/controllers/password.php
@@ -52,7 +52,7 @@ class Password_Controller extends Controller {
$user_name = $form->reset->inputs["name"]->value;
$user = user::lookup_by_name($user_name);
if ($user && !empty($user->email)) {
- $user->hash = md5(rand());
+ $user->hash = md5(uniqid(mt_rand(), true));
$user->save();
$message = new View("reset_password.html");
$message->confirm_url = url::abs_site("password/do_reset?key=$user->hash");