1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Passwords can't begin or end with whitespace

https://github.com/e107inc/e107/pull/3007#issuecomment-360229501
This commit is contained in:
Nick Liu
2018-01-24 14:15:01 -06:00
parent 6f40129cfc
commit 516d4ce1c6

View File

@@ -1798,7 +1798,7 @@ class e_form
$addon .= "<div style='margin-top:4px'><div class='progress' style='float:left;display:inline-block;width:218px;margin-bottom:0'><div class='progress-bar bar' id='pwdMeter' style='width:0%' ></div></div> <div id='pwdStatus' class='smalltext' style='float:left;display:inline-block;width:150px;margin-left:5px'></span></div>"; $addon .= "<div style='margin-top:4px'><div class='progress' style='float:left;display:inline-block;width:218px;margin-bottom:0'><div class='progress-bar bar' id='pwdMeter' style='width:0%' ></div></div> <div id='pwdStatus' class='smalltext' style='float:left;display:inline-block;width:150px;margin-left:5px'></span></div>";
} }
$options['pattern'] = vartrue($options['pattern'],'.{4,}'); $options['pattern'] = vartrue($options['pattern'],'[\S].{2,}[\S]');
$options['required'] = varset($options['required'], 1); $options['required'] = varset($options['required'], 1);
$options['class'] = vartrue($options['class'],'e-password tbox'); $options['class'] = vartrue($options['class'],'e-password tbox');