Login logik wurde verbessert
This commit is contained in:
@@ -155,7 +155,6 @@ Partial Class Kundenbereich_Default
|
|||||||
'MsgBox(Session.Item("test").ToString)
|
'MsgBox(Session.Item("test").ToString)
|
||||||
'MsgBox(Session.Item("CustomerID").ToString)
|
'MsgBox(Session.Item("CustomerID").ToString)
|
||||||
'MsgBox(Session.Item("PW").ToString)
|
'MsgBox(Session.Item("PW").ToString)
|
||||||
|
|
||||||
Kdnrtext = Session.Item("CustomerID").ToString
|
Kdnrtext = Session.Item("CustomerID").ToString
|
||||||
|
|
||||||
dt = Nothing
|
dt = Nothing
|
||||||
@@ -322,6 +321,7 @@ Partial Class Kundenbereich_Default
|
|||||||
ElseIf (rbt_Vorg.Selected = True Or rbt_Vorg_M.Selected = True) AndAlso tbl_CellStatus.Text = "Vorgeschrieben" Then
|
ElseIf (rbt_Vorg.Selected = True Or rbt_Vorg_M.Selected = True) AndAlso tbl_CellStatus.Text = "Vorgeschrieben" Then
|
||||||
normaltable.Rows.Add(tr)
|
normaltable.Rows.Add(tr)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
Next
|
Next
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -38,13 +38,17 @@ Partial Class login_login_TEST
|
|||||||
Login1.FailureText = "Account has not been activated."
|
Login1.FailureText = "Account has not been activated."
|
||||||
Exit Select
|
Exit Select
|
||||||
Case Else
|
Case Else
|
||||||
|
If Session.IsNewSession = True Then
|
||||||
Session.Add("test", Login1.UserName)
|
Session.Add("test", Login1.UserName)
|
||||||
CustomerIDTextBox = Login1.FindControl("CustomerID")
|
CustomerIDTextBox = Login1.FindControl("CustomerID")
|
||||||
Session.Add("CustomerID", CustomerIDTextBox.Text)
|
Session.Add("CustomerID", CustomerIDTextBox.Text)
|
||||||
Session.Add("PW", Login1.Password)
|
Session.Add("PW", Login1.Password)
|
||||||
|
|
||||||
|
|
||||||
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||||
|
Else
|
||||||
|
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
'FormsAuthentication.SetAuthCookie(Login1.UserName, True)
|
'FormsAuthentication.SetAuthCookie(Login1.UserName, True)
|
||||||
'Response.Redirect("mypage.aspx")
|
'Response.Redirect("mypage.aspx")
|
||||||
Exit Select
|
Exit Select
|
||||||
@@ -54,7 +58,6 @@ Partial Class login_login_TEST
|
|||||||
con.Close()
|
con.Close()
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
|
|
||||||
End Using
|
End Using
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user