Änderungen login pagedesign

This commit is contained in:
ja
2021-10-11 11:49:50 +02:00
parent 541c2894d7
commit 9b06928a0e
5 changed files with 140 additions and 29 deletions

View File

@@ -169,10 +169,10 @@ Partial Class login_ForgotPW
Else
MsgBox("Tokengenerierung nicht erfolgreich." & vbCrLf & "In 5 Sekunden nochmal versuchen!")
Dim jetzt As DateTime = DateTime.UtcNow
Dim wenn As DateTime = DateTime.UtcNow.AddMinutes(-3)
Dim wenn As DateTime = DateTime.UtcNow.AddSeconds(-5)
If jetzt < DateTime.UtcNow.AddSeconds(-5) Then
If jetzt < wenn Then
Return "NotYet"
Else
token = Convert.ToBase64String(time.Concat(Key).ToArray())