Die Funktion Validate() im Login Button Click Event war das Problem für das nicht validieren Methodik um einen Anonymen (gesichts- / namenslosen Accounts / Zugriff) auf der Seite zu gewähren.

This commit is contained in:
ja
2021-10-11 15:25:10 +02:00
parent d5ca9188ae
commit 6df74c152d
2 changed files with 5 additions and 3 deletions

View File

@@ -46,7 +46,9 @@ Partial Class login_login_TEST
CustomerIDTextBox = Login1.FindControl("CustomerID")
Session.Add("CustomerID", CustomerIDTextBox.Text)
Session.Add("PW", Login1.Password)
FormsAuthentication.RedirectFromLoginPage(User.Identity.Name, True)
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, True)
'FormsAuthentication.SetAuthCookie(Login1.UserName, True)
'Response.Redirect("../Customers/CustomsAviso.aspx")
Exit Select
@@ -59,7 +61,7 @@ Partial Class login_login_TEST
End Sub
Protected Sub LoginButton_Click(sender As Object, e As EventArgs)
Validate()
End Sub
Protected Sub CustomerID_TextChanged(sender As Object, e As EventArgs)