diff options
Diffstat (limited to 'app/php/pages/Signup.php')
-rw-r--r-- | app/php/pages/Signup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/php/pages/Signup.php b/app/php/pages/Signup.php index 4ee62dd..e989eb6 100644 --- a/app/php/pages/Signup.php +++ b/app/php/pages/Signup.php @@ -12,7 +12,7 @@ class Signup extends TPage { if ($this->Page->IsValid) { $newUser = new User(); $newUser->Login = $this->Login->SafeText; - $newUser->Password = password_hash($this->Password->Text, PASSWORD_DEFAULT); + $newUser->Password = DbUser::generatePassword($this->Password->Text); $newUser->IsAdmin = $this->Admin->Checked; $newUser->save(); $this->Response->redirect( |