From 82dfe19b4fc7704e58c2e4079bbb6f16c7363e46 Mon Sep 17 00:00:00 2001 From: ja Date: Thu, 14 Oct 2021 10:19:26 +0200 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20encryptionalgorithmus=20token?= =?UTF-8?q?=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- login/ChangePW.aspx.vb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/login/ChangePW.aspx.vb b/login/ChangePW.aspx.vb index 65b63a2..603a92b 100644 --- a/login/ChangePW.aspx.vb +++ b/login/ChangePW.aspx.vb @@ -7,16 +7,22 @@ Partial Class login_ChangePW Session.Add("urltochangepw", url) If VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("TokenforEmail").ToString()) = VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Request.QueryString("Par1")) AndAlso VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Session.Item("TokenforEmail").ToString()) = Not Nothing AndAlso VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Request.QueryString("Par1")) = Not Nothing Then If getDateoftoken(VERAG_PROG_ALLGEMEIN.cCryptography.Decrypt(Request.QueryString("Par1"))) = True Then - txt_Pw_WH.Enabled = False - txt_Pw.Enabled = False - regexval_txt_Pw_WH.Enabled = False + txt_Pw_WH.Enabled = True + txt_Pw.Enabled = True + regexval_txt_Pw_WH.Enabled = True If IsPostBack Then reqPasswtxt.Validate() reqPassw1txt.Validate() End If Else btn_submitpw.Enabled = False - + txt_Pw.BackColor = Drawing.Color.Gray + txt_Pw.ForeColor = Drawing.Color.DarkGray + txt_Pw_WH.Enabled = False + txt_Pw_WH.BackColor = Drawing.Color.Gray + txt_Pw_WH.ForeColor = Drawing.Color.DarkGray + txt_Pw.Enabled = False + regexval_txt_Pw_WH.Enabled = False End If Else MsgBox("Link ist abgelaufen. Bitte neue E-Mail senden.", MsgBoxStyle.Critical, "Error06") @@ -102,7 +108,6 @@ Partial Class login_ChangePW tokenname = "" MsgBox("Token nicht gefunden oder zu alt!" + Environment.NewLine + "Bitte erneut Mail senden!") Else - Return True End If End Function