1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

Users Plugin: update user registration actions - insert user hash too.

This commit is contained in:
Awilum
2012-09-30 14:55:38 +03:00
parent 8945ff81bf
commit fc27f4944e
2 changed files with 2 additions and 0 deletions

View File

@@ -83,6 +83,7 @@
$users->insert(array('login' => Security::safeName($user_login),
'password' => Security::encryptPassword(Request::post('password')),
'email' => Request::post('email'),
'hash' => Text::random('alnum', 12)
'date_registered' => time(),
'role' => Request::post('role')));

View File

@@ -131,6 +131,7 @@
Users::$users->insert(array('login' => Security::safeName($user_login),
'password' => Security::encryptPassword(Request::post('password')),
'email' => Request::post('email'),
'hash' => Text::random('alnum', 12)
'date_registered' => time(),
'role' => 'user'));