I have runing application(VB) with login page how can i integrate it with cutechat - is there any tutorial ?. Users are stored in sql database table: users
UNAME | UPASS | EMAIL | ROLE |
Login code :
Dim ds AsNew DataSet
SqlSelectCommand1.Parameters("@UNAME").Value = txtUNAME.Text
SqlSelectCommand1.Parameters("@UPASS").Value = txtUPASS.Text
daU.Fill(ds)
If ds.Tables(0).Rows.Count = 1 Then'user ok
FormsAuthentication.RedirectFromLoginPage(ds.Tables(0).Rows(0)("UNAME"), False)
Else
'bad login
EndIf