Commit | Line | Data |
---|---|---|
b5f60f89 JB |
1 | <?php |
2 | $form_email = filter_input(INPUT_POST, "email", FILTER_VALIDATE_EMAIL); | |
3 | $form_password = filter_input(INPUT_POST, "password", FILTER_SANITIZE_STRING); | |
4 | ||
5 | if (!$form_email) { | |
6 | echo "The email is not valid <br>"; | |
7 | } else { | |
8 | $sql_pquery = "select count(NumCI) from CLIENTS where EmailCI = ?"; | |
9 | ||
10 | echo "This email do not belong to a registred client, please register first <br>"; | |
11 | ||
12 | if (password_verify($form_password, $stored_password)) { | |
13 | ||
14 | } | |
15 | } | |
16 | ?> |