Forgot to edit some fields after previous update... :/

This commit is contained in:
Phyks 2013-12-29 18:41:55 +01:00
parent 6e89a63ebf
commit e3109398d9
2 changed files with 2 additions and 0 deletions

View File

@ -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()) {

View File

@ -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();