Fix handling of password and actcode reset
This commit is contained in:
parent
4ce6ec6b5e
commit
1263fa2f1f
@ -416,7 +416,13 @@ sub reset_password_actcode {
|
||||
my $user = $self -> get_user($username)
|
||||
or return undef;
|
||||
|
||||
return ($methodimpl -> reset_password_actcode($user -> {"user_id"}) || $self -> self_error($methodimpl -> errstr()));
|
||||
my ($pass, $code) = $methodimpl -> reset_password_actcode($user -> {"user_id"});
|
||||
|
||||
if($pass && $code) {
|
||||
return ($pass, $code);
|
||||
} else {
|
||||
return $self -> self_error($methodimpl -> errstr());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user