Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'funkcje.php';
- $db = get_db();
- //if(isset($_POST["submit"]))
- $login = $_POST['login'];
- $pass = $_POST['password'];
- $user = $db->users->findOne(['login'=>$login]);
- if ($user !== NULL && password_verify($pass, $user['password']))
- {
- //session_destroy();
- session_start();
- //session_regenerate_id();
- $_SESSION['user_id']=$user['_id'];
- header('Location: ../plakatyWai.php');
- }
- ?>
Add Comment
Please, Sign In to add comment