Paul

If you are using 3.0 or 3.1 there exists a request attribute which is set when 
login fails.
The name of the attribute is "mgnlLoginError".

Unfortunately, login page is a freemarker template and this attribute is not 
available in the data model passed to freemarker (I believe...)

I have filed an issue for this in JIRA and you can see more details at:

http://jira.magnolia.info/browse/MAGNOLIA-1566



Thanks
 
Amir
 

> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 07, 2007 8:18 AM
> To: [email protected]
> Subject: [magnolia-user] Custom "Not Authorised" page
> 
> Hi all,
> 
> I want to generate a custom page when incorrect authorisation 
> is given for a restricted page.  I have successfully made a 
> custom Not Found
> (404) page following the instructions in the Wiki, but the 
> same method doesn't work for 401 - indeed it prevents the 
> login popup from appearing, presumably because this is 
> generated in the usual 401 handling which I am breaking :~(.
> 
> Can anyone give me a clue where I can trap the login failure 
> to give a custom response?
> 
> Paul
> 
> --
> Paul Hodges
> 
> 
> 
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> ----------------------------------------------------------------
> 


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to