yumis56 / rabbitmqphp_example

0 stars 2 forks source link

Lack of redirection after authentication #11

Open mayso2025 opened 4 hours ago

mayso2025 commented 4 hours ago

RabbitMQ successfully login/rejects. But it has no redirection after it.

mayso2025 commented 4 hours ago

Solution: Implement a system where $request (the main array carrying the login information) has a additional header with a boolean type to display true or false (true being success, false being failure to login). By default, it will set as false, if the user info is in the database, the system will change it to True. Once its sent back into RabbitMQ, depending on true or false will determine going to welcome.php or failure.php that has a button to return to the login page.

yumis56 commented 3 hours ago

Something like this? We would need to add a session authentication at some point, for the redirect test it is not necessary.

https://github.com/yumis56/rabbitmqphp_example/blob/test-success/testRabbitMQClient.php