Sign in

" method="post">



'; foreach ($errors as $err) { echo '
  • ' . $err . '
  • '; } echo ''; } else { $user = new User(); $result = $user->get_by_name($user_name); if (!$result) { echo '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"); } } } } ?>