Änderung und Validatorenanpassung
This commit is contained in:
@@ -121,19 +121,20 @@ Partial Class login_Change_PW
|
||||
Protected Sub btn_submitpw_Click(sender As Object, e As EventArgs)
|
||||
Dim tempstr As String = ""
|
||||
Dim Msg, Style, Title As String
|
||||
reqPassw1txt_M.Enabled = False
|
||||
reqPasswtxt_M.Enabled = False
|
||||
reqPasswtxt.Enabled = True
|
||||
reqPassw1txt.Enabled = True
|
||||
reqPasswtxt.Validate()
|
||||
If reqPasswtxt.IsValid = True Then
|
||||
txt_Pw_WH.Enabled = True
|
||||
reqPassw1txt.Validate()
|
||||
End If
|
||||
|
||||
If String.IsNullOrEmpty(txt_Pw.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw_WH.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw_M.Text) = True AndAlso String.IsNullOrEmpty(txt_Pw_WH_M.Text) = True Then
|
||||
|
||||
txt_Pw_WH.Enabled = False
|
||||
reqPassw1txt_M.Enabled = False
|
||||
reqPasswtxt_M.Enabled = False
|
||||
reqPasswtxt.Enabled = True
|
||||
reqPassw1txt.Enabled = True
|
||||
reqPasswtxt.Validate()
|
||||
If reqPasswtxt.IsValid = True Then
|
||||
txt_Pw_WH.Enabled = True
|
||||
reqPassw1txt.Validate()
|
||||
End If
|
||||
|
||||
|
||||
Dim ConnectionString = ""
|
||||
|
||||
@@ -182,17 +183,6 @@ Partial Class login_Change_PW
|
||||
|
||||
If String.Equals(txt_Pw.Text, tempstr) = True AndAlso String.Equals(txt_Pw_WH.Text, tempstr) = True AndAlso String.IsNullOrEmpty(txt_Pw_M.Text) = True And String.IsNullOrEmpty(txt_Pw_WH_M.Text) = True And String.Equals(tempstr, "Error01") = False And tempstr = "Error02" Then
|
||||
|
||||
|
||||
txt_Pw_WH_M.Enabled = False
|
||||
reqPasswtxt.Enabled = False
|
||||
reqPassw1txt.Enabled = False
|
||||
reqPassw1txt.Enabled = True
|
||||
reqPasswtxt.Enabled = True
|
||||
reqPasswtxt.Validate()
|
||||
If reqPasswtxt.IsValid = True Then
|
||||
txt_Pw_WH.Enabled = True
|
||||
regexval_txt_Pw.Validate()
|
||||
End If
|
||||
If regexval_txt_Pw.IsValid = True Then
|
||||
Try
|
||||
Dim ConnectionString = ""
|
||||
@@ -310,13 +300,19 @@ Partial Class login_Change_PW
|
||||
Protected Sub btn_submitpw_M_Click(sender As Object, e As EventArgs)
|
||||
Dim tempstr As String = ""
|
||||
Dim ConnectionString = ""
|
||||
If String.IsNullOrEmpty(txt_Pw_M.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw_WH_M.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw.Text) = True AndAlso String.IsNullOrEmpty(txt_Pw_WH.Text) = True Then
|
||||
reqPasswtxt.Enabled = False
|
||||
reqPasswtxt.Enabled = False
|
||||
reqPasswtxt_M.Enabled = True
|
||||
reqPassw1txt_M.Enabled = True
|
||||
reqPasswtxt_M.Validate()
|
||||
confirmPasswordReq.Enabled = False
|
||||
confirmPasswordReq_M.Enabled = True
|
||||
confirmPasswordReq_M.Validate()
|
||||
reqPasswtxt.Enabled = False
|
||||
reqPasswtxt.Enabled = False
|
||||
reqPasswtxt_M.Enabled = True
|
||||
reqPassw1txt_M.Enabled = True
|
||||
reqPasswtxt_M.Validate()
|
||||
If reqPasswtxt_M.IsValid Then
|
||||
reqPassw1txt_M.Validate()
|
||||
End If
|
||||
If String.IsNullOrEmpty(txt_Pw_M.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw_WH_M.Text) = False AndAlso String.IsNullOrEmpty(txt_Pw.Text) = True AndAlso String.IsNullOrEmpty(txt_Pw_WH.Text) = True Then
|
||||
|
||||
|
||||
If reqPasswtxt_M.IsValid = True AndAlso reqPassw1txt_M.IsValid = True Then
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
|
||||
Reference in New Issue
Block a user