patkan
3 years ago

Redirect to page if validation fails when trying to login or register

Posted 3 years ago by patkan

Hello,

I am building a web application using Laravel 5.1. For register and authenticating users I am using the build in AuthController. The registration and the login forms are in modal windows and my idea is when the validation or the authentication fails to redirect to a new view with a login/register form, where I will display the errors. Everything is fine when the authentication fails - it redirects to the auth/login but when the validation fails it just reload the current page. How can I make it to redirect to auth/login if the validation fails?

Please sign in or create an account to participate in this conversation.