Fix Password send to admin
This commit is contained in:
parent
77e48dae8b
commit
4ee3743cf3
@ -496,11 +496,11 @@ switch ($action) {
|
|||||||
$date_now = date("Y-m-d H:i:s");
|
$date_now = date("Y-m-d H:i:s");
|
||||||
run_hook('add_admin'); #HOOK
|
run_hook('add_admin'); #HOOK
|
||||||
if ($msg == '') {
|
if ($msg == '') {
|
||||||
$password = Password::_crypt($password);
|
$passwordC = Password::_crypt($password);
|
||||||
$d = ORM::for_table('tbl_users')->create();
|
$d = ORM::for_table('tbl_users')->create();
|
||||||
$d->username = $username;
|
$d->username = $username;
|
||||||
$d->fullname = $fullname;
|
$d->fullname = $fullname;
|
||||||
$d->password = $password;
|
$d->password = $passwordC;
|
||||||
$d->user_type = $user_type;
|
$d->user_type = $user_type;
|
||||||
$d->phone = $phone;
|
$d->phone = $phone;
|
||||||
$d->email = $email;
|
$d->email = $email;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user