Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginController extends Controller {
- public function process() {
- $username = $_POST["username"];
- $password = $_POST["password"];
- if (!$username || !$password)
- {
- return "Error: Need Input";
- }
- $loggedIn = Login::login($username,$password);
- if ($loggedIn) {
- return "Success: Welcome!";
- }
- return "Error: Username or Password is incorrect";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement