Repair room creation

This commit is contained in:
Haitem 2020-06-11 21:36:15 +02:00
parent c68c051777
commit 599ef47cd9
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,11 @@ if (isset($_POST) && !empty($_POST)){
UserManager::createUser($userName, $password); UserManager::createUser($userName, $password);
header('Location: ' . BASEDIR . 'setting'); header('Location: ' . BASEDIR . 'setting');
die(); 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'] != "") { } else if (isset($_POST['submitEnableOta']) && $_POST['submitEnableOta'] != "") {
echo $otaCode = $_POST['otaCode']; echo $otaCode = $_POST['otaCode'];
echo $otaSecret = $_POST['otaSecret']; echo $otaSecret = $_POST['otaSecret'];

View File

@ -183,7 +183,7 @@
<input type="text" class="input" name="roomName" value=""> <input type="text" class="input" name="roomName" value="">
</div> </div>
<div class="field"> <div class="field">
<input type="submit" name="submitCreateUser" class="button" value="<?php $LANGMNG->echo('b_create') ?>"> <input type="submit" name="submitCreateRoom" class="button" value="<?php $LANGMNG->echo('b_create') ?>">
</div> </div>
</form> </form>
</div> </div>