mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-29 17:49:15 -04:00
Fix a bug in valid_password() where an empty password was considered valid.
This commit is contained in:
@@ -136,7 +136,7 @@ class User_Model extends ORM implements User_Definition {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->loaded() || $this->password_length) {
|
||||
if (!$this->loaded() || isset($this->password_length)) {
|
||||
$minimum_length = module::get_var("user", "mininum_password_length", 5);
|
||||
if ($this->password_length < $minimum_length) {
|
||||
$v->add_error("password", "min_length");
|
||||
|
||||
Reference in New Issue
Block a user