Once a user suspended, the ideal scenario would be to redirect him to a page like “Your account is currently suspended until …”.
Currently, suspended users cause an infinite loop:
- Discourse redirects the user to the login page (normal).
- Then the Login page redirects the user to Discourse and normally he should see an error or our community main page…
- However if the user is suspended, then Discourse will redirect again the user to the login page.
- As the user is already logged in, he will be redirected to discourse
And so on… In the end, it goes back and forward from the login server to discourse until the browser decides to raise an exception (Too many redirections…).
Is there a way to work around this issue?