Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. if (count($formError) == 0 && isset($_POST['submitConnect'])) {
  2.     $connectingUser->mail = $mail;
  3.     $existingMail = $connectingUser->existMailConnexion();
  4.     if ($existingMail && password_verify($password, $existingMail->password)) {
  5.         $_SESSION['user'] = $existingMail;
  6.         ?>
  7.     <script>window.location = "http://clairiere/index.php?page=accueil";</script>
  8.     <?php
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement