You've already forked bryanpedini.it_old
Updated author informations, updated location of included files, structured the website to the new layout, removed local fontawesome and moved to cloud CDN
This commit is contained in:
12
lib/php/user_login.php
Normal file
12
lib/php/user_login.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$user = [
|
||||
'username' => $_POST [ 'username' ],
|
||||
'password' => $_POST [ 'password' ],
|
||||
];
|
||||
if ( false ) {
|
||||
//TODO: ask the database if the user exists and check if the password is correct then
|
||||
}
|
||||
else {
|
||||
header ( "Location /" ); //TODO: modify with json response with "Wrong username or password" message
|
||||
exit;
|
||||
}
|
Reference in New Issue
Block a user