mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 04:07:59 +02:00
Users Plugin: update user registration actions - insert user hash too.
This commit is contained in:
@@ -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')));
|
||||
|
||||
|
@@ -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'));
|
||||
|
||||
|
Reference in New Issue
Block a user