diff options
author | emkael <emkael@tlen.pl> | 2016-03-10 16:32:29 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-10 16:32:29 +0100 |
commit | f2cdce29953391437018fcc69d08451d4b4a17f2 (patch) | |
tree | bef0886767dc424967e00e20962d75a58752c586 /app/php/pages | |
parent | 244aed5334194dd11e86541ec11445c72f70e1e8 (diff) |
* refactoring password hash/verify methods
Diffstat (limited to 'app/php/pages')
-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( |