Author |
Topic |
skyhawks
Junior Member
USA
125 Posts |
Posted - 15 August 2002 : 20:45:31
|
I'm not too familiar with asp programming. in my home page.. I like to be a logon menu on my root directory default page (different folder) and/or if they have register before, that means the cookie would still be in there system... it will say welcome back username. how to do you do that? |
----------------------------------------
Website: http://www.johnlophotography.com |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
skyhawks
Junior Member
USA
125 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
skyhawks
Junior Member
USA
125 Posts |
Posted - 19 August 2002 : 00:36:25
|
I just upgraded to 3.4. I cant seen to use my login page I created. It telling me username/password is not vaild. please help! |
----------------------------------------
Website: http://www.johnlophotography.com |
|
|
bax
Junior Member
141 Posts |
Posted - 19 August 2002 : 00:59:27
|
Skyhawks - email me your login page, I'll be happy to have a look and see if I can figure it out. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 19 August 2002 : 08:44:24
|
quote: Originally posted by skyhawks
I just upgraded to 3.4. I cant seen to use my login page I created. It telling me username/password is not vaild. please help!
I don't know inc_login.asp, never looked at it, just recommended since I knew what id did. Anyway I'd guess it will need changing for 3.4, since changes were done to the login process (password encryption for one). |
Snitz 3.4 Readme | Like the support? Support Snitz too |
Edited by - ruirib on 19 August 2002 08:45:30 |
|
|
skyhawks
Junior Member
USA
125 Posts |
Posted - 19 August 2002 : 12:07:59
|
ruirib,
yeah, inc_login.asp does have an include file inc_function.asp which is no longer being use by the 3.4 version now. It is also using config.asp file.. which is also differnt from the previous version. I would be appreciate if you can take it look at it.. only if you have time on your hand.
Bax,
I cant email it to you since I dont know you email address. But here's the link to the login page. thanks.
loginPage
(if the link doesnt work.. just use "save target as")
Thanks. |
----------------------------------------
Website: http://www.johnlophotography.com |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 19 August 2002 : 13:21:00
|
quote: Originally posted by skyhawks
ruirib,
yeah, inc_login.asp does have an include file inc_function.asp which is no longer being use by the 3.4 version now. It is also using config.asp file.. which is also differnt from the previous version. I would be appreciate if you can take it look at it.. only if you have time on your hand.
skyhawks,
Time is a scarce resource and I guess it will be for the next few days. I cannot promise that I will have a look, but I can try if I have the time. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
skyhawks
Junior Member
USA
125 Posts |
Posted - 19 August 2002 : 13:25:52
|
Thanks Ruirib, I understand. thats why I said if you have time on your hand. espeically with the 3.4 version just being release. I know you will be doing alot of bug fix... not including your regular full time job. |
----------------------------------------
Website: http://www.johnlophotography.com |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 19 August 2002 : 13:51:42
|
You need to include inc_sha256.asp and have the password encrypted first. Then it'll be checked against the one in the database and if valid, log you in. Right now it's just checking your unencrypted password against a 64 character string (the encrypted password) in the database, and naturally returns the error message that the passwords didn't match. |
|
|
skyhawks
Junior Member
USA
125 Posts |
Posted - 19 August 2002 : 14:21:19
|
I added the include file (inc_sha256.asp).. but it doesnt work. what do you meant by "have the password encrypted first"?? |
----------------------------------------
Website: http://www.johnlophotography.com |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 19 August 2002 : 14:25:23
|
In inc_header.asp this part can be found:
select case Request.Form("Method_Type") case "login" strEncodedPassword = sha256("" & Request.Form("Password")) select case chkUser(strDBNTFUserName, strEncodedPassword,-1) case 1, 2, 3, 4 Call DoCookies(Request.Form("SavePassword")) strLoginStatus = 1 case else strLoginStatus = 0 end select case "logout" Call ClearCookies() end select
You need to include that on every page where you show the login fields, above the <html> tag. That way the password will be encrypted. At least, it should be. |
|
|
skyhawks
Junior Member
USA
125 Posts |
Posted - 19 August 2002 : 15:20:27
|
it didnt work.. stated that
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'chkUser'
they were refering to this line...
select case chkUser(strDBNTFUserName, strEncodedPassword,-1)
|
----------------------------------------
Website: http://www.johnlophotography.com |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
sji2671
Junior Member
United Kingdom
185 Posts |
Posted - 19 August 2002 : 15:28:06
|
I did all of the above, and included inc_func_common.asp and getting the same error as skyhawks is getting. |
Edited by - sji2671 on 19 August 2002 15:29:01 |
|
|
Topic |
|