Developer forum

Forum » Templates » If bad or no login - redirect

If bad or no login - redirect

Dmitrij Jazel
Reply
Hello everyone,

I have a question here.
The website works like this:
There is a login link button. If it is clicked  login forma fades in.
If logged in - the link gets special style.

1) Eventually if the user, tries to access the webpage that is under extranet layer - the user gets a login forma viewed as a paragraph - with no styling on the page. If that happens it would be better instead to redirect to frontpage.

Another really important issue (that most likely will solve the first issue) is:
2) If the user tries to login, and if he provides bad credentials - form still redirects the user where he should normally appear if he is authenticated.
But since he is not authenticated - he finds himself at the logged-in destination with the form bad formated.

Hope someone could come with some good suggestions :-)

Kind regards,
Dmitrij

Replies

 

You must be logged in to post in the forum