mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Final Fixes And Clean Up
This commit is contained in:
1 parent
a3d911d3ec
commit
e0bbc09389
18 files changed
+29
-35
No files matched your search
@@ -15,7 +15,7 @@ if (
|
||||
$ota = $userManager->haveOtaEnabled($userName);
|
||||
if ($ota == "") {
|
||||
$landingPage = $userManager->login($userName, $userPassword, $rememberMe);
|
||||
header('Location: ' . BASEDIR . $landingPage);
|
||||
header('Location: ' . BASEURL . $landingPage);
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ if (
|
||||
$checkResult = $ga->verifyCode($otaSecret, $otaCode, 2); // 2 = 2*30sec clock tolerance
|
||||
if ($checkResult) {
|
||||
$landingPage = $userManager->login($userName, $userPassword, $rememberMe);
|
||||
header('Location: ' . BASEDIR . $landingPage);
|
||||
header('Location: ' . BASEURL . $landingPage);
|
||||
echo 'OK';
|
||||
} else {
|
||||
echo 'FAILED';
|
||||
|
||||
Reference in new issue
Block a user