Get Group
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
require_once "../../../bootstrap.php";
|
||||
require_once "Admin.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
use Backend\Models\Password;
|
||||
|
||||
session_start();
|
||||
if(isAdmin()){
|
||||
if(isset($_POST['restPassword'])){
|
||||
$group = Group::find($_POST['groupId']);
|
||||
if($group){
|
||||
$group->password->password = password_hash($_POST['newPassword'], PASSWORD_DEFAULT);
|
||||
if($group->save()){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user