Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Login with Email Address
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mafifi
Junior Member

USA
308 Posts

Posted - 04 February 2008 :  11:00:16  Show Profile  Send mafifi an ICQ Message
Is it possible to use the member's e-mail address on the login.asp page instead of the *username* to login on the form?

Regards,

Mo

AnonJr
Moderator

United States
5768 Posts

Posted - 04 February 2008 :  11:47:44  Show Profile  Visit AnonJr's Homepage
Don't see why not ... though if this is a public site you'd be allowing all your member's e-mail addresses to be harvested.
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 04 February 2008 :  15:59:22  Show Profile  Send mafifi an ICQ Message
I looked thru the code and it seems to be a lot of work for what I am trying to accomplish. Here is what I am trying to do. I have a legacy members only site that requires an *e-mail* and a *password* to enter the site. Once you are in the site you can go the forums without having to log again as I was able to set couple of cookies on that site that will pass the *username* and *password* to the forums. What I would like to do is the exact opposite. I want the user who goes first the forums and logs in with *username* and a *password* will be able to go to the rest of the site unchallenged. Therefore, if I can capture the e-mail of the user who goes to the forums first, I should be able to pass that in a cookie to the rest of the site. Thanks in advance for any help.

Regards,

Mo
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 February 2008 :  16:02:40  Show Profile  Send ruirib a Yahoo! Message
Why don't you get the email during the login process and then create the cookie?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 04 February 2008 :  16:22:52  Show Profile  Send mafifi an ICQ Message
I do not want to purden the user with 3 fields. That is *username*, *email* and *password*. It would be great if I can avoid that.

Regards,

Mo
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 February 2008 :  16:39:27  Show Profile  Send ruirib a Yahoo! Message
Get the email from the database, man, using the other data! During the login, you need to get username and password and match them with those in the cookie. Just get the email too!


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 04 February 2008 :  17:29:33  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Even easier.

In inc_header.asp change "Username" to "Username or email address" for the login box.

In inc_func_common.asp, the chkUser function change
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(fName, "SQLString") & "' "
to
	strSql = strSql & " WHERE (" & strDBNTSQLName & " = '" & ChkString(fName, "SQLString") & "' or M_EMAIL = '" & ChkString(fName, "SQLString") & "')"


Your users should be able to enter their username or email address and password to login.

Totally untested so you may have errors.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 04 February 2008 17:30:12
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 04 February 2008 :  20:23:10  Show Profile  Send mafifi an ICQ Message
quote:
Originally posted by Podge

Even easier.

In inc_header.asp change "Username" to "Username or email address" for the login box.

In inc_func_common.asp, the chkUser function change
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(fName, "SQLString") & "' "
to
	strSql = strSql & " WHERE (" & strDBNTSQLName & " = '" & ChkString(fName, "SQLString") & "' or M_EMAIL = '" & ChkString(fName, "SQLString") & "')"


Your users should be able to enter their username or email address and password to login.

Totally untested so you may have errors.




Preliminary testing looks good.

Regards,

Mo
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.47 seconds. Powered By: Snitz Forums 2000 Version 3.4.07