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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ $gameJam = GameJam::firstOrCreate([
|
||||
<input type="submit" name="login" value="login">
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user