Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# tdanz 12/28/2005 1:57 PM
Hi!

How can I prevent (without a hack) that the "You are not allowed to view this site" exception is fired and that the user is automatically redirected to the login page?

regards
Thomas
# martijnb 12/29/2005 4:39 AM
There not much you can do because Cuyahoga doesn't have a fixed login page. Maybe we can (ab)use the login page for the site administration. I'll have alook at it.
# martijnb 12/29/2005 5:54 AM
Yes, abusing the login page works. Version 1.0 will have the following setting in the web.config:

<add setting="RedirectToLoginWhenAccessDenied" value="true" /> <!-- true/false, customErrors must be enabled -->

Currently, the login page isn't localized though because it is more or less part of the site administration that also isn't localized but at least it might be better than the error message.
# tdanz 1/2/2006 3:42 AM
Thx! It's much better now.
But isn't it possible to specify an url where the you are redirected to for making a relogin. E.g. as an option to the current version. So it would be possible to redirect the user to the login module section on a specified site.
regards
Thomas
# martijnb 1/2/2006 9:26 AM
tdanzBut isn't it possible to specify an url where the you are redirected to for making a relogin. E.g. as an option to the current version. So it would be possible to redirect the user to the login module section on a specified site.

Yes, that would be nice. An optional url for the login page (specified by the user). When the url is empty, it goes to the 'other' login page.