Leverage existing authentication

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/68581?pagenum=1
04 November 2025, 21:42

Topic


web guy
Leverage existing authentication
26 April 2009, 14:16


Hello, is it possible to use the existing forum authentication system on a custom web form.

I use the Snitz Forum for my building condominium association.
I need to create a system for my users to submit maintenance requests. I would like to use the existing Snitz authentication to capture username for each request and send it to a new table. Does anyone know which include files I need to add to a blank asp page which would allow me to grab snitz variables and also maintain security.

 

Replies ...


Carefree
26 April 2009, 14:23


Sure, you'll need to include these three:
"config.asp", "inc_sha256.asp", "inc_header.asp"
ruirib
26 April 2009, 14:53


Definitely config.asp, inc_sha256.asp and inc_func_common.asp. inc_header.asp isn't strictly needed, as long as some of the code there is used in your page.
web guy
28 April 2009, 08:54


Thanks guys, perfect! Sorry I didn't respond sooner bigsmile
Would then I just use Request("username"), Request("email") to get the values?
Carefree
28 April 2009, 13:51


Code:

Response.Write	"User Name="&strDBNTUserName
Response.Write "EMail="&strEMail
Your values, therefore, can be retrieved using the two str values.
web guy
28 April 2009, 21:04


Thank you Carefree cool
Got it~
Shaggy
29 April 2009, 04:40


The e-mail address is not stored in a variable, you'll need to create your own and modify the chkUser function accordingly.
Carefree
29 April 2009, 06:12


I forgot, I added that a long time ago.
Ok to get the EMail from the database

Code:

strSql="SELECT M_EMAIL FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID="&MEMBERID
set rsMail=my_Conn.Execute(strSql)
if not rsMail.EOF then
strEMail=rsMail("M_EMAIL")
end if
Response.Write strEMail&"=strEMail"
web guy
29 April 2009, 10:49


Ok guys, thanks for all the support. I will give it a go this afternoon.
© 2000-2021 Snitz™ Communications