Login logik wurde verbessert
This commit is contained in:
@@ -38,13 +38,17 @@ Partial Class login_login_TEST
|
||||
Login1.FailureText = "Account has not been activated."
|
||||
Exit Select
|
||||
Case Else
|
||||
Session.Add("test", Login1.UserName)
|
||||
CustomerIDTextBox = Login1.FindControl("CustomerID")
|
||||
Session.Add("CustomerID", CustomerIDTextBox.Text)
|
||||
Session.Add("PW", Login1.Password)
|
||||
If Session.IsNewSession = True Then
|
||||
Session.Add("test", Login1.UserName)
|
||||
CustomerIDTextBox = Login1.FindControl("CustomerID")
|
||||
Session.Add("CustomerID", CustomerIDTextBox.Text)
|
||||
Session.Add("PW", Login1.Password)
|
||||
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||
Else
|
||||
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||
End If
|
||||
|
||||
|
||||
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||
'FormsAuthentication.SetAuthCookie(Login1.UserName, True)
|
||||
'Response.Redirect("mypage.aspx")
|
||||
Exit Select
|
||||
@@ -54,7 +58,6 @@ Partial Class login_login_TEST
|
||||
con.Close()
|
||||
End Using
|
||||
|
||||
|
||||
End Using
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user