$$LoginUserForm & login error

I have a customised $$LoginUserForm that uses a specific subform based on the value in the HTTP_Referer field. All is fine if the user enters a proper username and password. Unfortunately when a user enters the wrong username and password, the user is redirected back to the names.nsf version, which looks substantially different than the customised one they were originally presented with.

I’ve got the following formula in the RedirectTo field:

@If(ReasonType=“1” | ReasonType = “2” | ReasonType = “3” ; “/web/database.nsf/Main?OpenFrameset”; “/”)

but it’s not working.

I’ve searched the forum but can’t find much on this problem.

Any help is appreciated.

Thanks.

Subject: $$LoginUserForm & login error

Hi Isabelle,

Check the security settings of your login form and associated subforms. If it’s not already enabled, try turning on the option for “Available to Public Access users” on them and see if that takes care of the problem.

(On a side note, the “RedirectTo” field pretty much ignores whatever you put in it - it’s just there to keep track of where you’re going to be sent once you authenticate successfully.)

Hope this helps,

Stephanie