Fixed set login of initial username and password

This commit is contained in:
Tobias Reich 2016-01-30 23:17:46 +01:00
parent e8387e8794
commit 007cecc1d5

View File

@ -291,7 +291,8 @@ final class Admin extends Access {
Validator::required(isset($_POST['username'], $_POST['password']), __METHOD__);
echo Settings::setLogin(@$_POST['oldPassword'], $_POST['username'], $_POST['password']);
if (isset($_POST['oldPassword'])===false) $_POST['oldPassword'] = '';
echo Settings::setLogin($_POST['oldPassword'], $_POST['username'], $_POST['password']);
}