Fix Password send to admin

This commit is contained in:
Ibnu Maksum 2024-03-04 09:57:12 +07:00
parent 77e48dae8b
commit 4ee3743cf3
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -496,11 +496,11 @@ switch ($action) {
$date_now = date("Y-m-d H:i:s");
run_hook('add_admin'); #HOOK
if ($msg == '') {
$password = Password::_crypt($password);
$passwordC = Password::_crypt($password);
$d = ORM::for_table('tbl_users')->create();
$d->username = $username;
$d->fullname = $fullname;
$d->password = $password;
$d->password = $passwordC;
$d->user_type = $user_type;
$d->phone = $phone;
$d->email = $email;