Natalie
|
| Posted: 10/18/2002, 11:58 AM |
|
Ok, I am creating a membership based site and have most of the details worked out. I have the password emailed to the person registering so that I get a valid email address and have the password field hidden as to not show what it is until after registration. But as we all know, this is not too secure as all you have to do is view source and it can be figured out. I have the password field named something else but still the security is lacking.
Is there a wat to write this into the .asp page and not the template page and still have it write to the database? Like somewhere in the Sub Insert(Cmd) area.
Sub Insert(Cmd)
CCSEventResult = CCRaiseEvent(CCSEvents, "BeforeBuildInsert", Me)
Set Cmd.Connection = Connection
Cmd.CommandOperation = cmdExec
Cmd.SQL = "INSERT INTO memb(" & _
"Membershipid, " & _
"Name, " & _
"address, " & _
") VALUES (" & _
Connection.ToSQL(Membershipid.SQLText, Membershipid.DataType) & ", " & _
Connection.ToSQL(Name.SQLText, Name.DataType) & ", " & _
Connection.ToSQL(address.SQLText, address.DataType) & ", " & _
")"
if not there somewhere else maybe?
I have tried the add custom code feature in the right menu but with no success.
Maybe in here:
Private Sub Class_Initialize()
Set CCSEvents = CreateObject("Scripting.Dictionary")
Set objFields = New clsFields
Set Recordset = New clsDataSource
Set Errors = New clsErrors
AllParamsSet = True
Set Membershipid = CCCreateField("Membershipid", "Membershipid", ccsInteger, Empty, Recordset)
Set Name = CCCreateField("Name", "Name", ccsText, Empty, Recordset)
Set address = CCCreateField("address", "address", ccsText, Empty, Recordset)
can anyone help?
Thanks 
Natalie
|
|
|
 |
Natalie
|
| Posted: 10/18/2002, 12:14 PM |
|
I am using CCS 1.7, ASP 3.0 with Templates and SQL 2000 Database. I have tried to set it up in the database for a default value but it will not take my formula.
Thanks
|
|
|
 |
|