I have created a little symfony app that handles signin and signout. Everything seems perfect but when I try to sign in to the app it keeps telling username/password not correct. This is my attempt
In the parameters.yml file I have this for the database connection
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: loginDb
database_user: root
database_password: null
I am using this in my UserController to check if username and password is correct
if ($form->isValid()) {
........
$session->set("user", $user);
return $this->redirect($this->generateUrl("project_homepage"));
} else {
$session->getFlashBag()->add(
'message', "Username or password is incorrect."
);
}
}
I am trying to login from the front end with the username and password as I have in my database but its not granting me access. This looks weird to me. What could be wrong. Thanks for assistance received