ferobert
Posts: 10
|
Posted: 02/15/2004, 8:43 AM |
|
I don't know if it's just me, or someone else has experienced this, as well. Anyway, I list the problem/solution, in the hope that it will be useful for someone.
For the login form, I changed the "login" field to "username", to have more suggestive error messages. But, when login_events.php is generated, in function Login_Button_DoLogin_OnClick(), this line stays like this:
if(!CCLoginUser($Login->login->Value, $Login->password->Value))
when it should be:
if(!CCLoginUser($Login->username->Value, $Login->password->Value))
Related issue:
In login.html, this JavaScript code remains like this:
if (document.forms["Login"] && document.Login.login) document.Login.login.focus();
When it should be replaced with "username", or better yet, with the template variable "{username_Name}", as it is defined in the login form: <input name="{username_Name}" value="{username}"...>
So, my JavaScript code looks like this:
if (document.forms["Login"] && document.Login.{username_Name}) document.Login.{username_Name}.focus();
Regards
Robert
|
|
|
|