From f5e972c030675f46cda543e13da1b787457e070b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:21:12 -0600 Subject: Add the rest of the changes --- signin.php | 138 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 69 insertions(+), 69 deletions(-) mode change 100644 => 100755 signin.php (limited to 'signin.php') diff --git a/signin.php b/signin.php old mode 100644 new mode 100755 index ef60750..195895a --- a/signin.php +++ b/signin.php @@ -1,69 +1,69 @@ - - - - - Sign in - cflip.net forum - - - - -

Sign in

-
" method="post"> -
-
-
-
- -
-'; - foreach ($errors as $err) { - $errstr .= '
  • ' . $err . '
  • '; - } - $errstr .= ''; - trigger_error($errstr); - } else { - $user = new User(); - $user->get_by_name($user_name); - - if (!$user->has_value()) { - trigger_error('There is no user with that name. Did you mean to create a new account?'); - } else { - if (!password_verify($user_pass, $user->password)) { - echo 'Password does not match!'; - } else { - Session::get()->sign_in($user); - header("Location: index.php"); - } - } - } -} -?> - - + + + + + Sign in - cflip.net forum + + + + +

    Sign in

    +
    " method="post"> +
    +
    +
    +
    + +
    +'; + foreach ($errors as $err) { + $errstr .= '
  • ' . $err . '
  • '; + } + $errstr .= ''; + trigger_error($errstr); + } else { + $user = new User(); + $user->get_by_name($user_name); + + if (!$user->has_value()) { + trigger_error('There is no user with that name. Did you mean to create a new account?'); + } else { + if (!password_verify($user_pass, $user->password)) { + echo 'Password does not match!'; + } else { + Session::get()->sign_in($user); + header("Location: index.php"); + } + } + } +} +?> + + -- cgit v1.2.3