2021-03-09 09:45:05 +00:00
|
|
|
<?php
|
|
|
|
require "../../../bootstrap.php";
|
|
|
|
|
|
|
|
use Backend\Models\Group;
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
if (isset($_POST['updateGroup'])) {
|
2021-03-09 12:16:34 +00:00
|
|
|
if($group = Group::find($_POST['groupId'])){
|
|
|
|
if ($group->password->remember_token === $_SESSION['token']){
|
|
|
|
$group->group_name = $_POST['group_name'];
|
|
|
|
$group->group_amount = $_POST['group_amount'];
|
|
|
|
$group->game_jam_id = $_POST['game_jam_id'];
|
|
|
|
$group->save();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-09 09:45:05 +00:00
|
|
|
|
|
|
|
}
|
2021-03-09 12:16:34 +00:00
|
|
|
|
2021-03-09 09:45:05 +00:00
|
|
|
|
|
|
|
|