Fixen des bugs

This commit is contained in:
ja
2021-11-18 16:27:19 +01:00
parent 08fd4a75bc
commit c2d7e10bbd
2 changed files with 42 additions and 42 deletions

View File

@@ -322,7 +322,6 @@
<li> <li>
<asp:Label ID="Label3" runat="server" style="color:#003680;margin-left:2px">1 Uppercase</asp:Label> <asp:Label ID="Label3" runat="server" style="color:#003680;margin-left:2px">1 Uppercase</asp:Label>
</li> </li>
<li> <li>
<asp:Label ID="Label4" runat="server" style="color:#003680;margin-left:2px">1 Downcase </asp:Label> <asp:Label ID="Label4" runat="server" style="color:#003680;margin-left:2px">1 Downcase </asp:Label>
</li> </li>

View File

@@ -193,7 +193,7 @@ Partial Class login_Change_PW
txt_Pw_WH.Enabled = True txt_Pw_WH.Enabled = True
regexval_txt_Pw.Validate() regexval_txt_Pw.Validate()
End If End If
If regexval_txt_Pw.IsValid = True Then
Try Try
Dim ConnectionString = "" Dim ConnectionString = ""
Dim usrname As String = VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Request.QueryString("Par2")) Dim usrname As String = VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Request.QueryString("Par2"))
@@ -206,7 +206,7 @@ Partial Class login_Change_PW
'ConnectionString = "Server=db593295684.db.1and1.com;Database=db593295684;Uid=dbo593295684;Pwd=atilla#2;" 'ConnectionString = "Server=db593295684.db.1and1.com;Database=db593295684;Uid=dbo593295684;Pwd=atilla#2;"
End If End If
If regexval_txt_Pw.IsValid = True Then If regexval_txt_Pw.IsValid = True Then
Using con As New SqlConnection(ConnectionString)
Using cmd As New SqlCommand("UPDATE [VERAG_HOMEPAGE].[dbo].[Users] SET [Password]=@Password WHERE [Username]=@Username AND [UserId]=@UserId") Using cmd As New SqlCommand("UPDATE [VERAG_HOMEPAGE].[dbo].[Users] SET [Password]=@Password WHERE [Username]=@Username AND [UserId]=@UserId")
' cmd.CommandType = CommandType.StoredProcedure ' cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@Username", usrname) cmd.Parameters.AddWithValue("@Username", usrname)
@@ -224,7 +224,7 @@ Partial Class login_Change_PW
End Using End Using
con.Close() con.Close()
End Using End Using
End If
Else Else
VERAG_VARIABLES.seterrorcount(22) VERAG_VARIABLES.seterrorcount(22)
'lbl_messagetext_M.ForeColor = Drawing.Color.Red 'lbl_messagetext_M.ForeColor = Drawing.Color.Red
@@ -233,6 +233,7 @@ Partial Class login_Change_PW
Catch ex As Exception Catch ex As Exception
lbl_messagetext.Text = ex.Message lbl_messagetext.Text = ex.Message
End Try End Try
End If
Msg = "PW erfolgreich geändert!" Msg = "PW erfolgreich geändert!"
Style = vbOKOnly + vbInformation + vbDefaultButton1 Style = vbOKOnly + vbInformation + vbDefaultButton1
Title = "Information" Title = "Information"