Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
mot de passe à 4 caractères minimum autorisé
Browse files Browse the repository at this point in the history
  • Loading branch information
polosson committed Nov 5, 2014
1 parent 5be86cf commit f0fcb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Users.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function setName ( $newName ){
return Users::USERS_OK;
}
public function setPassword ( $newpass ) {
if ( strlen ($newpass) <=4 ) return Users::USERS_ERROR_PASSSHORT ;
if ( strlen ($newpass) < 4 ) return Users::USERS_ERROR_PASSSHORT ;
$crypt = md5(SALT_PASS.$newpass);
$this->infos->addInfo ( Users::USERS_PASS, $crypt );
return Users::USERS_OK;
Expand Down

0 comments on commit f0fcb2a

Please sign in to comment.