mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 04:37:51 +02:00
Install Script: update new user registration.
This commit is contained in:
@@ -95,6 +95,7 @@
|
|||||||
$users->insert(array('login' => Security::safeName(Request::post('login')),
|
$users->insert(array('login' => Security::safeName(Request::post('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' => 'admin'));
|
'role' => 'admin'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user