mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Repair room creation
This commit is contained in:
1 parent
c68c051777
commit
599ef47cd9
2 files changed
+6
-1
No files matched your search
@@ -13,6 +13,11 @@ if (isset($_POST) && !empty($_POST)){
|
||||
UserManager::createUser($userName, $password);
|
||||
header('Location: ' . BASEDIR . 'setting');
|
||||
die();
|
||||
} else if (isset($_POST['submitCreateRoom']) && $_POST['submitCreateRoom'] != "") {
|
||||
$roomName = $_POST['roomName'];
|
||||
RoomManager::create($roomName);
|
||||
header('Location: ' . BASEDIR . 'setting');
|
||||
die();
|
||||
} else if (isset($_POST['submitEnableOta']) && $_POST['submitEnableOta'] != "") {
|
||||
echo $otaCode = $_POST['otaCode'];
|
||||
echo $otaSecret = $_POST['otaSecret'];
|
||||
|
||||
Reference in new issue
Block a user