CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Bug in the Login form? - solution given

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.