Overview
Comment:Montrer quand le mot de passe est trop court
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e9e8918053f15d9631d25cedf387cdc01a0fb6fd
User & Date: bohwaz on 2015-02-17 17:15:08
Other Links: manifest | tags
Context
2015-02-17
17:46
Notation raccourcie check-in: 564e72ba27 user: bohwaz tags: trunk
17:15
Montrer quand le mot de passe est trop court check-in: e9e8918053 user: bohwaz tags: trunk
2015-02-14
01:48
Correction typo check-in: 34e80f5aa5 user: bohwaz tags: trunk
Changes

Modified src/www/admin/static/scripts/password.js from [464ae5d01c] to [14f90c76a4].

118
119
120
121
122
123
124







125
126
127
128
129
130
131
	function checkPasswordStrength() {
	    if (pw_elm.value == '')
	    {
	    	strength_elm.className = strength_elm.className.split(' ')[0];
	        strength_elm.innerHTML = '';
	        return true;
	    }








	    var score = scorePassword(pw_elm.value);

	    if (score > 80)
	    {
	    	strength_elm.className = strength_elm.className.split(' ')[0] + ' ok';
	        strength_elm.innerHTML = 'Sécurité : <b>forte</b>';







>
>
>
>
>
>
>







118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
	function checkPasswordStrength() {
	    if (pw_elm.value == '')
	    {
	    	strength_elm.className = strength_elm.className.split(' ')[0];
	        strength_elm.innerHTML = '';
	        return true;
	    }

	    if (!pw_elm.value.match(new RegExp(pw_elm.getAttribute('pattern'))))
	    {
	    	strength_elm.className = strength_elm.className.split(' ')[0] + ' fail';
	        strength_elm.innerHTML = 'Trop court&nbsp;!';
	        return true;
	    }

	    var score = scorePassword(pw_elm.value);

	    if (score > 80)
	    {
	    	strength_elm.className = strength_elm.className.split(' ')[0] + ' ok';
	        strength_elm.innerHTML = 'Sécurité : <b>forte</b>';