From 16ce06313eca37293afabd4a325e7955b894a978 Mon Sep 17 00:00:00 2001 From: ja Date: Wed, 13 Oct 2021 14:22:40 +0200 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20der=20If=20Else=20Abfrage=20bei?= =?UTF-8?q?=20dem=20HTTP=20Context=20zur=20Domainbestimmung=20bei=20der=20?= =?UTF-8?q?LinkGenerierung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- login/ForgotPW.aspx | 2 +- login/ForgotPW.aspx.vb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/login/ForgotPW.aspx b/login/ForgotPW.aspx index fe97e3a..007e4d8 100644 --- a/login/ForgotPW.aspx +++ b/login/ForgotPW.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ForgotPW.aspx.vb" Inherits="login_ForgotPW" %> +<%@ Page Language="VB" AutoEventWireup="false" Debug="true" CodeFile="ForgotPW.aspx.vb" Inherits="login_ForgotPW" %> <%@ Reference VirtualPath="~/login/ChangePW.aspx" %> diff --git a/login/ForgotPW.aspx.vb b/login/ForgotPW.aspx.vb index dcdc43d..15628f1 100644 --- a/login/ForgotPW.aspx.vb +++ b/login/ForgotPW.aspx.vb @@ -22,7 +22,7 @@ Partial Class login_ForgotPW If valreqtxtEmail.IsValid = True Then email = txtEmail.Text ElseIf valreqtxtEmail.IsValid = False Then - valreqtxtEmail.ErrorMessage = "ANnotation: The given Daomain is not the company domain." + valreqtxtEmail.ErrorMessage = "ANnotation: The given Domain is not the company domain." regexval_txt_Email.Validate() valreqtxtEmail.IsValid = True End If @@ -125,7 +125,7 @@ Partial Class login_ForgotPW mailto = email Betreff = "Passwort reset" htmlbody = String.Format("Sehr geehrte/r {0},

Bitte dem Link zum Zurücksetzen des Passwortes folgen:


.
" + Environment.NewLine + "Link" + Environment.NewLine + "
Mit freundlichen Grüßen
VERAG | EDV Support
support@verag.ag,", username, password) - ElseIf HttpContext.Current.Request.ServerVariables("SERVER_NAME") = Not "localhost" Then + Else getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME") ServPort = String.Empty 'pagename = Request.ServerVariables("SCRIPT_NAME")