Allow to display mail resend confirmation screen (#1508)

This commit is contained in:
Clément OUDOT 2018-10-09 09:37:26 +02:00
parent 075fc36c00
commit b33bd5a99d
2 changed files with 8 additions and 1 deletions

View File

@ -278,7 +278,10 @@ sub _reset {
$self->userLogger->notice(
'Reset mail already sent to ' . $req->{user} );
# To avoid enumeration, return OK
# Return mail already sent only if it is allowed at previous step
if ( $self->conf->{portalErrorOnMailNotFound} ) {
return PE_MAILCONFIRMATION_ALREADY_SENT;
}
return PE_MAILCONFIRMOK;
}

View File

@ -66,6 +66,10 @@
<input type="hidden" value="<TMPL_VAR NAME="MAIL">" name="mail">
</TMPL_IF>
<TMPL_IF NAME="TOKEN">
<input type="hidden" name="token" value="<TMPL_VAR NAME="TOKEN">" />
</TMPL_IF>
<h3 trspan="resendConfirmMail">Resend confirmation mail?</h3>
<p class="alert alert-info">