Dear Foxweb Support,
I write programs for various language users and am setting up an authform.fwx for a Spanish client at present.
The code below works fine, changing User ID to "Usuario" and Password to "Clave", but I can see no way of changing the message one gets when an incorrect id or password is entered.
As it stands, I get:
"Authentication failed. Please re-enter your Clave.", which is a lovely mixture!
I tried Auth.Message = "Incorrecto", but of course that was being too hopeful.
Could you let me know if there is a way to do this? I have looked very carefully in the Foxweb Documentation but found no references to this. If not, perhaps you could bear this possibility in mind for future versions.
I look forward to hearing from you.
John Waite
Code used:
*************************************************
Auth.AuthFormFile = "c:\bugle\acs_authform.fwx"
Auth.AuthTable = "c:\bugle\a_clientes.dbf"
Auth.UserIDFieldName = "cid"
Auth.PasswordFieldName = "cpass"
Auth.MaxLoginAttempts = 3
Auth.UserIDCaption = "Usuario" && OK
Auth.PasswordCaption = "Clave" && OK
*Auth.Message = "incorrecto" && ??
Auth.CancelAction = "window.location='
http://localhost/arcolocal/acs_nuevo.htm'"
Auth.SaveCookie = 1
Auth.Header = [<DIV ALIGN="center"><H3>Zona Protegida.</h3>]
Auth.Footer = [© 2002 Bugle Marketing Ltd.]
Auth.ForgetPassword()
Auth.Authenticate()
**************************************************