diff --git a/login/Change_PW.aspx b/login/Change_PW.aspx index a618e30..7ed05f2 100644 --- a/login/Change_PW.aspx +++ b/login/Change_PW.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Change_PW.aspx.vb" Debug="true" Inherits="login_Change_PW" %> +<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Change_PW.aspx.vb" Debug="false" Inherits="login_Change_PW" %> diff --git a/login/ForgotPW.aspx b/login/ForgotPW.aspx index e214e0c..4d89323 100644 --- a/login/ForgotPW.aspx +++ b/login/ForgotPW.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="VB" AutoEventWireup="false" Debug="True" CodeFile="ForgotPW.aspx.vb" Inherits="ForgotPW" %> +<%@ Page Language="VB" AutoEventWireup="false" Debug="false" CodeFile="ForgotPW.aspx.vb" Inherits="ForgotPW" %> <%@ Reference VirtualPath="~/login/Change_PW.aspx" %> diff --git a/login/ForgotPW.aspx.vb b/login/ForgotPW.aspx.vb index ff5fbee..bc75514 100644 --- a/login/ForgotPW.aspx.vb +++ b/login/ForgotPW.aspx.vb @@ -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