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)
 Create a member from external code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pvh
Starting Member

16 Posts

Posted - 19 January 2004 :  07:32:06  Show Profile  Visit pvh's Homepage
When a user registers on my website through existing facility, I also want to create a Snits meber as well. This covers the single logon facility I want to have.
Any suggestions or existing code to achieve this?

Pieter

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 19 January 2004 :  07:42:21  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
You might want to take a look at register.asp (especially lines 382-568, which inserts the member data into the MEMBERS or MEMBERS_PENDING table).
Be sure to check for valid data using the forum's built in functions to avoid problems like error messages and security issues.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

VividWeb
Starting Member

5 Posts

Posted - 29 February 2004 :  02:50:10  Show Profile
I have set up something similar to this and all works except for the encrypted password. The password inserts into the Members table but the encrypted string looks different than a string created using the snitz register pages. Any suggestions?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 February 2004 :  06:51:31  Show Profile  Send ruirib a Yahoo! Message
Use the snitz code to encrypt the password.


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

VividWeb
Starting Member

5 Posts

Posted - 29 February 2004 :  11:25:58  Show Profile
I have used the snitz code. I copied the inc_sha256 file into the folder where my app is and used the same command to encrypt the password. Is there some type of key created off the file location or something like that?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 February 2004 :  13:56:10  Show Profile  Send ruirib a Yahoo! Message
The file has all you need, AFAIK. How are you using the code to encrypt the password?


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

VividWeb
Starting Member

5 Posts

Posted - 29 February 2004 :  15:14:54  Show Profile
I have used the following code:



Password = trim(Request("Password"))
strEncodedPassword = sha256(Password)



And have included the inc_sha256.asp file.

Thanks
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 February 2004 :  16:30:41  Show Profile  Send ruirib a Yahoo! Message
That looks ok to me. Why do you say the passwords are different from those generated by Snitz? Have you tried to call "your" function with the same value as calling the Snitz one and see if there are differences?


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

VividWeb
Starting Member

5 Posts

Posted - 29 February 2004 :  16:33:26  Show Profile
Yes I have. I am running this on my test server and when I enter the same password into the Snitz registration pages and into my registration page I get a different string. Also the password will not work in Snitz, I have request a new pasword. It is very strange to me. I look at the snitz code and I don't see any type of password string modification (other than the encryption). I am completely baffled.

Todd
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 February 2004 :  19:20:45  Show Profile  Send ruirib a Yahoo! Message
Snitz does nothing to the password besides encrypting it. I would suggest that you do some "parallel" debugging. Using the same password to convert, insert some Response.Write statements in "both" functions, yours and Snitz, to see wat which point they differ, so that you can try to find out what is causing that.


Snitz 3.4 Readme | Like the support? Support Snitz too
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 7.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07