database And dertory update

This commit is contained in:
2021-03-08 13:01:01 +01:00
parent 858b065a8e
commit 4eb443cd1c
15 changed files with 59 additions and 13 deletions
@@ -0,0 +1,15 @@
<?php
require "../../../bootstrap.php";
use Backend\Models\Group;
use Backend\Models\Password;
session_start();
if(isset($_SESSION['Admin'])){
if(isset($_POST['RestPassword'])){
$group = Group::find($_POST['groupId']);
if($group){
$group->password->password = password_hash("Aa123456&", PASSWORD_DEFAULT);
}
}
}