Commit b0a4077d authored by Dustri's avatar Dustri
Browse files

Small style-improvement for the password-checker

parent 5a86fa2f
......@@ -762,8 +762,16 @@ if ( $_REQUEST["page"] == "edit" && $can_edit )
$frm = new form("changepassword","user.php?id_utilisateur=".$user->id,true,"POST","Changer de mot de passe");
$frm->add_hidden("action","changepassword");
// This is hackish, but simpler than creating a custom method for the "form" class
$frm->puts('<div class="formrow"><div class="formlabel" >Mot de passe *</div><div class="formfield"><input id="ae2_password" name="ae2_password" onchange="checkPassword(document.getElementById(\'ae2_password\').value); return true;" onkeypress="checkPassword(document.getElementById(\'ae2_password\').value); return true;" onpaste="this.onkeypress();" oninput="this.onkeypress();" type="password"></div>
</div>');
$frm->puts('<div class="formrow">' .
'<div class="formlabel" >Mot de passe *</div>' .
'<div class="formfield">' .
'<input id="ae2_password" name="ae2_password"' .
'onchange="checkPassword(document.getElementById(\'ae2_password\').value); return true;"' .
'onkeypress="checkPassword(document.getElementById(\'ae2_password\').value); return true;"' .
'onpaste="this.onkeypress();"' .
'oninput="this.onkeypress();" type="password">' .
'</div>' .
'</div>');
$frm->add_password_field("ae2_password2","Repetez le mot de passe","",true);
$frm->puts("<div class='formrow'><div class='formlabel'>Qualité du mot de passe</div><div class='formfield' id='pmeter'>Champ vide</div></div>");
$frm->add_submit("save","Enregistrer");
......
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