And I am migrating another forum to Web Wiz Forums, I must use a default password to every member because they use a different passowd.
This is my code:
RS is the import data
RS5 is WWF
.....
RS5("Username") = RS("UserName")
RS5("Real_name") = RS("usertitle")
RS5("User_code") = userCode(Trim(Mid(RS("UserName"), 1, 15)))
strPassword="197346"
'******************************************
'*** Encrypt password ***
'******************************************
'Encrypt password
If blnEncryptedPasswords Then
If strPassword <> "" Then
strSalt = getSalt(Len(strPassword))
'Concatenate salt value to the password
strEncryptedPassword = strPassword & strSalt
'Encrypt the password
strEncryptedPassword = HashEncode(strEncryptedPassword)
End If
End If
RS5("Password") = strEncryptedPassword
RS5("Salt") = strSalt
.......
after finishing,I try some members name and the default password,I can login,but my WWF can not remember me,when I return to the default page,it make me login again?
why,what can I make a password..
Edited by aston - 03 April 2006 at 6:09am