Revert "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 reverts commit fd6ebe2e7f.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Change_PW.aspx.vb" Debug="false" Inherits="login_Change_PW" %>
|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Change_PW.aspx.vb" Debug="true" Inherits="login_Change_PW" %>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" Debug="false" CodeFile="ForgotPW.aspx.vb" Inherits="ForgotPW" %>
|
<%@ Page Language="VB" AutoEventWireup="false" Debug="True" CodeFile="ForgotPW.aspx.vb" Inherits="ForgotPW" %>
|
||||||
<%@ Reference VirtualPath="~/login/Change_PW.aspx" %>
|
<%@ Reference VirtualPath="~/login/Change_PW.aspx" %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ Partial Class ForgotPW
|
|||||||
customerID = dr("KundenNr").ToString()
|
customerID = dr("KundenNr").ToString()
|
||||||
|
|
||||||
Try
|
Try
|
||||||
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
|
If txt_Username.Text = dr("Username").ToString() AndAlso String.IsNullOrEmpty(txt_Username_M.Text) = True And String.IsNullOrEmpty(customerID) = False Then
|
||||||
username = txt_Username.Text
|
username = txt_Username.Text
|
||||||
isusrnmright = True
|
isusrnmright = True
|
||||||
ElseIf String.IsNullOrEmpty(txt_Username.Text) = True Then
|
ElseIf String.IsNullOrEmpty(txt_Username.Text) = True Then
|
||||||
@@ -142,7 +142,7 @@ Partial Class ForgotPW
|
|||||||
isusrnmright = False
|
isusrnmright = False
|
||||||
End Try
|
End Try
|
||||||
End If
|
End If
|
||||||
If (String.Compare(txtEmail.Text, dr("Email").ToString(), True) AndAlso String.IsNullOrEmpty(txtEmail_M.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
If (txtEmail.Text = dr("Email").ToString() AndAlso String.IsNullOrEmpty(txtEmail_M.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||||
email = txtEmail.Text
|
email = txtEmail.Text
|
||||||
lblMessage.ForeColor = Color.Green
|
lblMessage.ForeColor = Color.Green
|
||||||
isemailright = True
|
isemailright = True
|
||||||
@@ -360,7 +360,7 @@ Partial Class ForgotPW
|
|||||||
email = dr("Email").ToString()
|
email = dr("Email").ToString()
|
||||||
customerID = dr("KundenNr").ToString()
|
customerID = dr("KundenNr").ToString()
|
||||||
Try
|
Try
|
||||||
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
|
If (txt_CustomerID_M.Text = dr("KundenNr").ToString() AndAlso String.IsNullOrEmpty(txt_CustomerID.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||||
customerID = txt_CustomerID_M.Text
|
customerID = txt_CustomerID_M.Text
|
||||||
lblMessage_M.ForeColor = Color.Green
|
lblMessage_M.ForeColor = Color.Green
|
||||||
isuserIDright = True
|
isuserIDright = True
|
||||||
@@ -379,7 +379,7 @@ Partial Class ForgotPW
|
|||||||
Title = "Authentication error!"
|
Title = "Authentication error!"
|
||||||
End Try
|
End Try
|
||||||
Try
|
Try
|
||||||
If (String.Compare(txtEmail_M.Text, dr("Email").ToString(), True) AndAlso String.IsNullOrEmpty(txtEmail.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
If (txtEmail_M.Text = dr("Email").ToString() AndAlso String.IsNullOrEmpty(txtEmail.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||||
email = txtEmail_M.Text
|
email = txtEmail_M.Text
|
||||||
isuserEmailright = True
|
isuserEmailright = True
|
||||||
lblMessage_M.ForeColor = Color.Green
|
lblMessage_M.ForeColor = Color.Green
|
||||||
@@ -398,7 +398,7 @@ Partial Class ForgotPW
|
|||||||
Title = "Authentication error!"
|
Title = "Authentication error!"
|
||||||
End Try
|
End Try
|
||||||
Try
|
Try
|
||||||
If (String.Compare(txt_Username_M.Text, dr("Username").ToString(), False) AndAlso String.IsNullOrEmpty(txt_Username.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
If (txt_Username_M.Text = dr("Username").ToString() AndAlso String.IsNullOrEmpty(txt_Username.Text) = True) And String.IsNullOrEmpty(customerID) = False Then
|
||||||
username = txt_Username_M.Text
|
username = txt_Username_M.Text
|
||||||
lblMessage_M.ForeColor = Color.Green
|
lblMessage_M.ForeColor = Color.Green
|
||||||
isusernameright = True
|
isusernameright = True
|
||||||
|
|||||||
Reference in New Issue
Block a user