Fix /scripts/setpassword.php

common_munge_password is expecting a Profile, we were passing a user_id.

Thanks @aroque for the fix ( ref. #100 )
This commit is contained in:
Chimo 2015-12-04 17:09:06 +00:00
parent 831e9db7ec
commit 10bb4cb659
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ if (!$user) {
$original = clone($user);
$user->password = common_munge_password($password, $user->id);
$user->password = common_munge_password($password, $user->getProfile());
if (!$user->update($original)) {
print "Error updating user '$nickname'.\n";