aboutsummaryrefslogtreecommitdiff
path: root/actions/user/password.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/password.php')
-rw-r--r--actions/user/password.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/actions/user/password.php b/actions/user/password.php
index aae22cc02..eb5debcb8 100644
--- a/actions/user/password.php
+++ b/actions/user/password.php
@@ -31,6 +31,7 @@
{
if ($password == $password2)
{
+ $user->salt = generate_random_cleartext_password(); // Reset the salt
$user->password = generate_user_password($user, $password);
if ($user->save())
system_message(elgg_echo('user:password:success'));