Änderungen An Update errornummer funktion sowie der Passwortreset-Seite
This commit is contained in:
@@ -9,7 +9,7 @@ Public Class VERAG_VARIABLES
|
|||||||
errornumb += 1
|
errornumb += 1
|
||||||
End Sub
|
End Sub
|
||||||
Shared Function geterrornumb() As String
|
Shared Function geterrornumb() As String
|
||||||
Return Environment.NewLine + "Error:" + Space(1) + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(errornumb.ToString)
|
Return Environment.NewLine + "Error:" + Space(1) + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(errornumb.ToString) + Space(1)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ Partial Class login_Change_PW
|
|||||||
regexval_txt_Pw_WH.Enabled = False
|
regexval_txt_Pw_WH.Enabled = False
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
MsgBox("Link ist abgelaufen. Bitte neue E-Mail senden.", MsgBoxStyle.Critical, "Error06")
|
VERAG_VARIABLES.initerrorcount()
|
||||||
|
VERAG_VARIABLES.seterrorcount(1)
|
||||||
|
lbl_messagetext.Text = VERAG_VARIABLES.geterrornumb + "Link ist abgelaufen. Bitte neue E-Mail senden."
|
||||||
Response.Redirect("ForgotPW.aspx")
|
Response.Redirect("ForgotPW.aspx")
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -149,7 +151,8 @@ Partial Class login_Change_PW
|
|||||||
'End If
|
'End If
|
||||||
ElseIf tempstr = "Error01" Then
|
ElseIf tempstr = "Error01" Then
|
||||||
regexval_txt_Pw.ForeColor = Drawing.Color.MediumVioletRed
|
regexval_txt_Pw.ForeColor = Drawing.Color.MediumVioletRed
|
||||||
regexval_txt_Pw.Text = "Password has not been changed successfully!"
|
VERAG_VARIABLES.seterrorcount(2)
|
||||||
|
regexval_txt_Pw.Text = VERAG_VARIABLES.geterrornumb + "Password has not been changed successfully!"
|
||||||
' Msg = "PW nicht erfolgreich geändert!"
|
' Msg = "PW nicht erfolgreich geändert!"
|
||||||
' Style = vbAbortRetryIgnore + vbCritical + vbDefaultButton1
|
' Style = vbAbortRetryIgnore + vbCritical + vbDefaultButton1
|
||||||
' Title = "Error"
|
' Title = "Error"
|
||||||
@@ -186,9 +189,11 @@ Partial Class login_Change_PW
|
|||||||
If wenn < DateTime.UtcNow.AddMinutes(-30) Then
|
If wenn < DateTime.UtcNow.AddMinutes(-30) Then
|
||||||
nameoftoken = String.Empty
|
nameoftoken = String.Empty
|
||||||
If VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("Mob").ToString()) = "True" Then
|
If VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("Mob").ToString()) = "True" Then
|
||||||
lbl_messagetext.Text = "Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!"
|
VERAG_VARIABLES.seterrorcount(101)
|
||||||
|
lbl_messagetext.Text = VERAG_VARIABLES.geterrornumb + "Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!"
|
||||||
ElseIf VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("Mob").ToString()) = "False" Then
|
ElseIf VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("Mob").ToString()) = "False" Then
|
||||||
lbl_messagetext_M.Text = "Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!"
|
VERAG_VARIABLES.seterrorcount(101)
|
||||||
|
lbl_messagetext_M.Text = VERAG_VARIABLES.geterrornumb + "Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!"
|
||||||
End If
|
End If
|
||||||
'MsgBox("Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!")
|
'MsgBox("Token has not been found or is too old!" + Environment.NewLine + "Please send a new E-mail!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user