log update
This commit is contained in:
parent
9a38284c8b
commit
6cf27d1cc6
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue