Debug-flags auf Produktiv umgestellt, damit keinerlei sensible Pfadangaben nach außen gelangen können. sowie fix für Ignorierung der groß- und Kleinschreibung der E-Mails und nicht bei Usernamen, da somit mehrere überschrieben werdne könnten..
This commit is contained in:
@@ -129,7 +129,7 @@ Partial Class ForgotPW
|
||||
customerID = dr("KundenNr").ToString()
|
||||
|
||||
Try
|
||||
If txt_Username.Text = dr("Username").ToString() AndAlso String.IsNullOrEmpty(txt_Username_M.Text) = True And String.IsNullOrEmpty(customerID) = False Then
|
||||
If String.Compare(txt_Username.Text, dr("Username").ToString(), False) = 0 AndAlso String.IsNullOrEmpty(txt_Username_M.Text) = True And String.IsNullOrEmpty(customerID) = False Then
|
||||
username = txt_Username.Text
|
||||
isusrnmright = True
|
||||
ElseIf String.IsNullOrEmpty(txt_Username.Text) = True Then
|
||||
@@ -142,7 +142,7 @@ Partial Class ForgotPW
|
||||
isusrnmright = False
|
||||
End Try
|
||||
End If
|
||||
If (txtEmail.Text = dr("Email").ToString() AndAlso String.IsNullOrEmpty(txtEmail_M.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
If (String.Compare(txtEmail.Text, dr("Email").ToString(), True) AndAlso String.IsNullOrEmpty(txtEmail_M.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
email = txtEmail.Text
|
||||
lblMessage.ForeColor = Color.Green
|
||||
isemailright = True
|
||||
@@ -360,7 +360,7 @@ Partial Class ForgotPW
|
||||
email = dr("Email").ToString()
|
||||
customerID = dr("KundenNr").ToString()
|
||||
Try
|
||||
If (txt_CustomerID_M.Text = dr("KundenNr").ToString() AndAlso String.IsNullOrEmpty(txt_CustomerID.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
If (String.Compare(txt_CustomerID_M.Text, dr("KundenNr").ToString(), False) = 0 AndAlso String.IsNullOrEmpty(txt_CustomerID.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
customerID = txt_CustomerID_M.Text
|
||||
lblMessage_M.ForeColor = Color.Green
|
||||
isuserIDright = True
|
||||
@@ -379,7 +379,7 @@ Partial Class ForgotPW
|
||||
Title = "Authentication error!"
|
||||
End Try
|
||||
Try
|
||||
If (txtEmail_M.Text = dr("Email").ToString() AndAlso String.IsNullOrEmpty(txtEmail.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
If (String.Compare(txtEmail_M.Text, dr("Email").ToString(), True) AndAlso String.IsNullOrEmpty(txtEmail.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
email = txtEmail_M.Text
|
||||
isuserEmailright = True
|
||||
lblMessage_M.ForeColor = Color.Green
|
||||
@@ -398,7 +398,7 @@ Partial Class ForgotPW
|
||||
Title = "Authentication error!"
|
||||
End Try
|
||||
Try
|
||||
If (txt_Username_M.Text = dr("Username").ToString() AndAlso String.IsNullOrEmpty(txt_Username.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
If (String.Compare(txt_Username_M.Text, dr("Username").ToString(), False) AndAlso String.IsNullOrEmpty(txt_Username.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||
username = txt_Username_M.Text
|
||||
lblMessage_M.ForeColor = Color.Green
|
||||
isusernameright = True
|
||||
|
||||
Reference in New Issue
Block a user