CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Custom login with username, password and company n

Print topic Send  topic

Author Message
nagu
Posted: 05/13/2002, 2:26 PM

Hi,

I would like to modify the default login page to a custom login page. I need 3 fields : company name, username and password. I tried adding a field in Login Form and added custom login code to handle that field. But the field I introduced(company name) doesn't show up. So how do I add this third field?

thanks,

Nagu
Beltzer
Posted: 05/14/2002, 2:37 AM

I don't know if you can put an extra field into the login page. but you can make the user company dependend. If user Joe logs in, he will automaticly get userid = 1 and companyid = 10 for example.. Put it in a session.
Barry G. Sumpter
Posted: 05/14/2002, 3:18 AM

Can someone please supply us with a working sample for this?

Thanks,
Barry G. Sumpter
Nicole
Posted: 05/14/2002, 5:03 AM

Guys,
CC Login form is quite strict and the only way to add one more field to it is:
- in templateless pattern create Custom Show page event and edit html code to insert additional table row.
- in template pattern you should modify .html file. In order not to overwrite custom modifications uncheck 'Generate HTML file' flag on page properties
Then you should create Custom Login and Custom Logout event, obtain generated code and add custom session variable for new field.
Nestor
Posted: 05/17/2002, 7:42 PM

Hello everyone,

I used company id instead of company name.

I added the following code in the login form:

if bPassed <> 0 then
Session("sCompanyID") = DLookUp("IESUser", "CompanyID", "UserName = " & ToSQL(sLogin, "Text") & " and Password = " & ToSQL(sPassword, "Text"))
end if

Nestor

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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