made a mvp
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
|
||||
<?php
|
||||
/*
|
||||
author: Thies Müller
|
||||
contact: contactme@td00.de
|
||||
source: https://github.com/td00/loginpagefoo
|
||||
license: AGPL 3.0
|
||||
*/
|
||||
session_start(); //here the session starts again
|
||||
include 'db.inc.php'; //we need a db connection here too!
|
||||
|
||||
@@ -26,7 +20,6 @@ if(isset($_GET['login'])) { //same as register. looks for "?login=1" in the url
|
||||
$_SESSION['activated'] = $user['activated'];
|
||||
$_SESSION['updated_at'] = $user['updated_at'];
|
||||
$_SESSION['isadmin'] = $user['isadmin'];
|
||||
$_SESSION['profilepicture'] = $user['profilepicture'];
|
||||
die('<div class="alert alert-success" role="alert"> successfull. go to: <a href="start.php">start page</a></div> <meta http-equiv="refresh" content="0; URL=start.php">'); //successful login, thats all.
|
||||
} else {
|
||||
$errorMessage = '<div class="alert alert-danger" role="alert">somethings wrong (maybe wrong password or wrong user)</div><br>'; //if password not match or username doesn't exist print this line
|
||||
|
Reference in New Issue
Block a user