From 579478646b8f20fa47cb19696a2dd224c1b52571 Mon Sep 17 00:00:00 2001 From: ja Date: Thu, 7 Oct 2021 13:24:43 +0200 Subject: [PATCH] Revert "Verbesserte Sicherheit durch Verringerung der Zeitbegrenzung der Tokenlebenszeit" This reverts commit f053a730f0c01f7825d2853b8d02f86ff85940f2. --- css/login/ForgotPW.css | 3 +++ login/ForgotPW.aspx | 4 ---- login/ForgotPW.aspx.vb | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/css/login/ForgotPW.css b/css/login/ForgotPW.css index 8d2702a..824aa03 100644 --- a/css/login/ForgotPW.css +++ b/css/login/ForgotPW.css @@ -41,14 +41,17 @@ font-size: 2.55em; color: #fff; } + .txt_design { color: #003680; font-size: 1.65em; } + #CustomerID { color: #003680; font-size: 1.320901320901321em; } + #lbl_Hinweis { font-size: 1.188em; color: dimgrey; diff --git a/login/ForgotPW.aspx b/login/ForgotPW.aspx index 6daf033..ddd4277 100644 --- a/login/ForgotPW.aspx +++ b/login/ForgotPW.aspx @@ -110,10 +110,6 @@ - - - - diff --git a/login/ForgotPW.aspx.vb b/login/ForgotPW.aspx.vb index a9e42f7..6242eb3 100644 --- a/login/ForgotPW.aspx.vb +++ b/login/ForgotPW.aspx.vb @@ -168,10 +168,9 @@ Partial Class login_ForgotPW Function getDateoftoken(tokenname As String) As Boolean Dim data() As Byte = Convert.FromBase64String(tokenname) Dim wenn As DateTime = DateTime.FromBinary(BitConverter.ToInt64(data, 0)) - If wenn < DateTime.UtcNow.AddMinutes(-30) Then + If wenn < DateTime.UtcNow.AddHours(-24) Then Return False MsgBox("Token nicht gefunden oder zu alt!" + Environment.NewLine + "Bitte erneut Mail senden!") - tokenname = "" Else Return True End If