Browse Source

ユーザ認証

main
みてるぞ 1 year ago
parent
commit
4130e71756
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      auth_user.php

+ 17
- 0
auth_user.php View File

@@ -0,0 +1,17 @@
<?php

require_once './db_connection.php';

require_once './modules/user.mod.php';


$id = $_GET['id'];
$pass = $_GET['pass'];

$user = User :: find ($id);

if ($user -> pass === $pass)
echo implode (',', [$user -> name]);
else
echo 'error';


Loading…
Cancel
Save