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:
parent
831e9db7ec
commit
10bb4cb659
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user