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

Hide authentication loop on reset password (#253)

parent c48f4b43
<div id="password">
<form action="#" method="post" class="password">
<input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="CHOICE_VALUE">" />
<h3><lang en="Change your password" fr="Changez votre mot de passe" /></h3>
<table>
<TMPL_IF NAME="LOGIN">
......
<div id="password">
<form action="#" method="post" class="password">
<input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="CHOICE_VALUE">" />
<h3><lang en="Change your password" fr="Changez votre mot de passe" /></h3>
<table>
<TMPL_IF NAME="LOGIN">
......
......@@ -228,7 +228,10 @@ sub display {
REQUIRE_OLDPASSWORD => 1,
DISPLAY_PASSWORD => 1,
DISPLAY_RESETPASSWORD => 0,
DISPLAY_FORM => 0
DISPLAY_FORM => 0,
AUTH_LOOP => [],
CHOICE_PARAM => $self->{authChoiceParam},
CHOICE_VALUE => $self->{_authChoice},
);
}
......@@ -239,6 +242,7 @@ sub display {
DISPLAY_RESETPASSWORD => 0,
DISPLAY_FORM => 0,
DISPLAY_OPENID_FORM => 1,
AUTH_LOOP => [],
);
}
......
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