mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 05:01:04 -04:00
Provate a way to set the hashed password directly
This commit is contained in:
@@ -29,9 +29,13 @@ class User_Model extends ORM {
|
||||
|
||||
public function __set($column, $value) {
|
||||
switch ($column) {
|
||||
case "password":
|
||||
$value = user::hash_password($value);
|
||||
break;
|
||||
case "hashed_password":
|
||||
$column = "password";
|
||||
break;
|
||||
|
||||
case "password":
|
||||
$value = user::hash_password($value);
|
||||
break;
|
||||
}
|
||||
parent::__set($column, $value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user