ChangePW wurde zur Fehlervermeidung neu erstellt
This commit is contained in:
@@ -87,7 +87,7 @@ Partial Class login_FLEX
|
||||
reqfieldvaluserName.ErrorMessage = "Username has to be given."
|
||||
End If
|
||||
End If
|
||||
If String.IsNullOrEmpty(tb2.Text) = False AndAlso String.IsNullOrEmpty(tb2_M.Text) = True Then
|
||||
If String.IsNullOrEmpty(tb2_M.Text) = False AndAlso String.IsNullOrEmpty(tb2.Text) = True Then
|
||||
reqfieldvaluserName.Enabled = False
|
||||
reqfieldvaluserName_M.Enabled = True
|
||||
reqfieldvaluserName_M.Validate()
|
||||
@@ -108,15 +108,22 @@ Partial Class login_FLEX
|
||||
End If
|
||||
passw = tb3.Text
|
||||
End If
|
||||
If String.IsNullOrEmpty(tb3.Text) = False AndAlso String.IsNullOrEmpty(tb3_M.Text) = True Then
|
||||
reqfieldvalpassw.Enabled = True
|
||||
reqfieldvalpassw_M.Enabled = False
|
||||
|
||||
reqfieldvalpassw.Validate()
|
||||
If reqfieldvalpassw.IsValid = True Then
|
||||
End If
|
||||
passw = tb3_M.Text
|
||||
End If
|
||||
End If
|
||||
If reqfieldvalpassw_M.IsValid AndAlso String.IsNullOrEmpty(tb3.Text) = False AndAlso String.IsNullOrEmpty(tb3_M.Text) = True Then
|
||||
If String.IsNullOrEmpty(tb3.Text) = False AndAlso String.IsNullOrEmpty(tb3_M.Text) = True Then
|
||||
reqfieldvalpassw.Enabled = False
|
||||
reqfieldvalpassw_M.Enabled = True
|
||||
reqfieldvalpassw_M.Validate()
|
||||
If reqfieldvalpassw_M.IsValid = True Then
|
||||
passw = tb3_M.Text
|
||||
Else
|
||||
reqfieldvalpassw_M.ErrorMessage = "Password has to be given."
|
||||
End If
|
||||
End If
|
||||
' Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
|
||||
|
||||
Reference in New Issue
Block a user