Forgot to edit some fields after previous update... :/
This commit is contained in:
parent
6e89a63ebf
commit
e3109398d9
@ -241,6 +241,7 @@
|
||||
$user->setPassword($user->encrypt($_POST['password']));
|
||||
}
|
||||
$user->setAdmin($_POST['admin']);
|
||||
$user->setStaySignedInToken("");
|
||||
|
||||
if($user->setEmail($_POST['email']) !== false) {
|
||||
if(!empty($_POST['user_id']) || $user->isUnique()) {
|
||||
|
@ -91,6 +91,7 @@
|
||||
$admin->setPassword($admin->encrypt($_POST['admin_password']));
|
||||
$admin->setAdmin(true);
|
||||
$admin->setEmail($_POST['email_webmaster']);
|
||||
$admin->setStaySignedInToken("");
|
||||
$admin->setNotifications(3);
|
||||
$admin->newJsonToken();
|
||||
$admin->save();
|
||||
|
Loading…
Reference in New Issue
Block a user