Commit 98617998 authored by Clément OUDOT's avatar Clément OUDOT

Restore portalRequireOldPassword value (#1554)

parent 8552c9c5
......@@ -445,6 +445,7 @@ sub changePwd {
$self->p->_passwordDB->modifyPassword( $req,
$req->data->{newpassword}, 1 );
$req->{user} = undef;
$self->conf->{portalRequireOldPassword} = $tmp;
# Mail token can be used only one time, delete the session if all is ok
return $result unless ( $result == PE_PASSWORD_OK or $result == PE_OK );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment