[HELP] 4Story TLogin function

05/13/2015 21:38 Hamachi4s#1
Hello!

Password not working. Syntax error... password1=password2
(MD5 Hashed?)
My TLogin script:
05/13/2015 21:51 [DEV] Tiger#2
This is no MD5 hash
05/13/2015 23:00 Hamachi4s#3
Yes yes :)
Edited The script.
05/14/2015 15:16 [DEV] Tiger#4
Quote:
SELECT TOP 1 @dwUserID = dwUserID, @bCheck=bCheck FROM TACCOUNT WHERE szUserID = @szUserID AND @szPasswd = CONVERT(VARCHAR(100), HashBytes('MD5', szPasswd) , 2)
IF @@ROWCOUNT = 0
BEGIN
/* Invalid Password */
RETURN 2
END
With MD5 hash