log update

This commit is contained in:
RundelhausCode 2021-03-04 13:31:11 +01:00
parent 9a38284c8b
commit 6cf27d1cc6
1 changed files with 2 additions and 2 deletions

View File

@ -13,9 +13,9 @@ if(isset($_POST['login'])){
$groupName = $_POST["groupName"];
$password = $_POST["password"];
$group = Group::where('groupName', $groupName )->first();
$group = Group::firstWhere('groupName', $groupName );
if($group){
$hashedPassword = $group->password()->id;
$hashedPassword = $group->password()->password;
if(password_verify($password, $hashedPassword )){
$_SESSION['groupName'] = $groupName;
$_SESSION['success'] = "You are now logged in";