Made login html
This commit is contained in:
+2
-2
@@ -15,11 +15,11 @@ if(isset($_POST['login'])){
|
||||
|
||||
$group = Group::firstWhere('groupName', $groupName );
|
||||
if($group){
|
||||
$hashedPassword = $group->password()->password;
|
||||
$hashedPassword = $group->password->password;
|
||||
if(password_verify($password, $hashedPassword )){
|
||||
$_SESSION['groupName'] = $groupName;
|
||||
$_SESSION['success'] = "You are now logged in";
|
||||
header('location: Main.php?yeah=aa');
|
||||
header('location: Main.php?login=success');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user