Commit 0f60238e authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Merge branch 'master' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng

parents c2da030b 5fbbe20a
......@@ -406,17 +406,17 @@ sub changePwd {
$self->ott->setToken( $req, $req->sessionInfo );
return PE_PASSWORDFORMEMPTY;
}
}
# Modify the password TODO: change this
# Populate $req->{user} for logging purpose
my $tmp = $self->conf->{portalRequireOldPassword};
$self->conf->{portalRequireOldPassword} = 0;
my $result = $self->p->_passwordDB->modifyPassword($req);
$req->{user} = undef;
# Modify the password TODO: change this
# Populate $req->{user} for logging purpose
my $tmp = $self->conf->{portalRequireOldPassword};
$self->conf->{portalRequireOldPassword} = 0;
my $result = $self->p->_passwordDB->modifyPassword($req);
$req->{user} = undef;
# 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 );
}
# 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 );
# Send mail containing the new password
$req->data->{mailAddress} ||=
......
......@@ -216,7 +216,7 @@
<div id="logout">
<div class="card border-secondary">
<div class="card-header text-white bg-secondary">
<h3 class="card-title" trspan="areYouSure">Are you sure ?</h3>
<h4 class="card-title" trspan="areYouSure">Are you sure ?</h4>
</div>
<div class="card-body buttons">
<a href="<TMPL_VAR NAME="LOGOUT_URL">" class="btn btn-success" role="button">
......
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