1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

Install Script: update new user registration.

This commit is contained in:
Awilum
2012-09-30 22:23:05 +03:00
parent eeb949b326
commit ca4f31a60b

View File

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