mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +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),
|
$users->insert(array('login' => Security::safeName($user_login),
|
||||||
'password' => Security::encryptPassword(Request::post('password')),
|
'password' => Security::encryptPassword(Request::post('password')),
|
||||||
'email' => Request::post('email'),
|
'email' => Request::post('email'),
|
||||||
|
'hash' => Text::random('alnum', 12)
|
||||||
'date_registered' => time(),
|
'date_registered' => time(),
|
||||||
'role' => Request::post('role')));
|
'role' => Request::post('role')));
|
||||||
|
|
||||||
|
@@ -131,6 +131,7 @@
|
|||||||
Users::$users->insert(array('login' => Security::safeName($user_login),
|
Users::$users->insert(array('login' => Security::safeName($user_login),
|
||||||
'password' => Security::encryptPassword(Request::post('password')),
|
'password' => Security::encryptPassword(Request::post('password')),
|
||||||
'email' => Request::post('email'),
|
'email' => Request::post('email'),
|
||||||
|
'hash' => Text::random('alnum', 12)
|
||||||
'date_registered' => time(),
|
'date_registered' => time(),
|
||||||
'role' => 'user'));
|
'role' => 'user'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user