änderungen
This commit is contained in:
@@ -80,26 +80,26 @@ Partial Class ForgotPW
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
valreqtxtEmail.Validate()
|
valreqtxtEmail.Validate()
|
||||||
If valreqtxtEmail.IsValid = True Then
|
If valreqtxtEmail.IsValid = True Then
|
||||||
|
regexval_txt_Email.Validate()
|
||||||
|
If regexval_txt_Email.IsValid = False Then
|
||||||
|
regexval_txt_Email.ForeColor = Drawing.Color.OrangeRed
|
||||||
|
regexval_txt_Email.ErrorMessage = "Annotation: The Domain does not match."
|
||||||
|
regexval_txt_Email_2.Validate()
|
||||||
|
If regexval_txt_Email_2.IsValid = True Then
|
||||||
|
email = txtEmail.Text
|
||||||
|
regexval_txt_Email.ForeColor = Drawing.Color.Lime
|
||||||
|
regexval_txt_Email.ErrorMessage = "E-mail Address valid."
|
||||||
|
End If
|
||||||
|
Else
|
||||||
regexval_txt_Email.Validate()
|
regexval_txt_Email.Validate()
|
||||||
If regexval_txt_Email.IsValid = False Then
|
If valreqtxtEmail.IsValid = True Then
|
||||||
regexval_txt_Email.ForeColor = Drawing.Color.OrangeRed
|
valreqtxtEmail.ForeColor = Drawing.Color.Lime
|
||||||
regexval_txt_Email.ErrorMessage = "Annotation: The Domain does not match."
|
valreqtxtEmail.ErrorMessage = "E-mail Address valid."
|
||||||
regexval_txt_Email_2.Validate()
|
email = txtEmail.Text
|
||||||
If regexval_txt_Email_2.IsValid = True Then
|
|
||||||
email = txtEmail.Text
|
|
||||||
regexval_txt_Email.ForeColor = Drawing.Color.Lime
|
|
||||||
regexval_txt_Email.ErrorMessage = "E-mail Address valid."
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
regexval_txt_Email.Validate()
|
|
||||||
If valreqtxtEmail.IsValid = True Then
|
|
||||||
valreqtxtEmail.ForeColor = Drawing.Color.Lime
|
|
||||||
valreqtxtEmail.ErrorMessage = "E-mail Address valid."
|
|
||||||
email = txtEmail.Text
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
' MsgBox("3" + email + " " + username)
|
' MsgBox("3" + email + " " + username)
|
||||||
@@ -173,8 +173,8 @@ Partial Class ForgotPW
|
|||||||
check_UserName_regex_M.ErrorMessage = "A too long Username has been entered."
|
check_UserName_regex_M.ErrorMessage = "A too long Username has been entered."
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
'MsgBox("The form has not been filled completeley.", MsgBoxStyle.Critical, "Error08")
|
'MsgBox("The form has not been filled completeley.", MsgBoxStyle.Critical, "Error08")
|
||||||
lblMessage.ForeColor = Color.Red
|
lblMessage.ForeColor = Color.Red
|
||||||
lblMessage.Text = "Error 08. The form has not been filled completeley."
|
lblMessage.Text = "Error 08. The form has not been filled completeley."
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -324,6 +324,7 @@ Partial Class ForgotPW
|
|||||||
Dim htmlbody As String = String.Empty
|
Dim htmlbody As String = String.Empty
|
||||||
Dim emailnr = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA_ID.ToString
|
Dim emailnr = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA_ID.ToString
|
||||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||||
|
MsgBox(getdomianenvironment)
|
||||||
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
|
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
|
||||||
ServPort = ":" + Request.ServerVariables("SERVER_PORT")
|
ServPort = ":" + Request.ServerVariables("SERVER_PORT")
|
||||||
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
||||||
@@ -333,10 +334,11 @@ Partial Class ForgotPW
|
|||||||
Dim Ausschusstext2 As String = "und Zinsen zuletzt auf Zölle angerechnet. Zahlbar und klagbar in Schärding oder Ried. Steuer-Zoll-und Tarifauskünfte sind unverbindlich."
|
Dim Ausschusstext2 As String = "und Zinsen zuletzt auf Zölle angerechnet. Zahlbar und klagbar in Schärding oder Ried. Steuer-Zoll-und Tarifauskünfte sind unverbindlich."
|
||||||
Dim Ausschusstext3 As String = "We operate exclusively on the basis of the General Freight Forwarding Terms and Conditions in the respectively applicable version. Payments are initially"
|
Dim Ausschusstext3 As String = "We operate exclusively on the basis of the General Freight Forwarding Terms and Conditions in the respectively applicable version. Payments are initially"
|
||||||
Dim Ausschusstext4 As String = "charged on freight, fees and interests and at last on customs duties. The place of jurisdiction: Schärding / Ried. Tax, customs and tariff information are not binding."
|
Dim Ausschusstext4 As String = "charged on freight, fees and interests and at last on customs duties. The place of jurisdiction: Schärding / Ried. Tax, customs and tariff information are not binding."
|
||||||
htmlbody = String.Format("Dear, {0},<br /><br /> Please follow the Link to reset your password:<br /><br />" + Environment.NewLine + "<a runat=" + "server" + " href=http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + ">http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + "</a>" + Environment.NewLine + "<br /><br /><br />Kind regards, <br /><span style='color: #043381'><b>VERAG | EDV Support</b></span><br /><span style='color: #043381'>VERAG Spedition AG | A 4975 Suben, Nr. 100</span><br /><span style='color: #043381'>T.<a href='tel:+43 7711 2777-xx'>+43 7711 2777-xx</a> |<a href='mailto:@support@verag.ag'>support@verag.ag</a> |" + emailnr + "FN xxxxxxx</span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext2 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext3 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext4 + "</i></span><br />", username, password)
|
htmlbody = String.Format("Dear {0},<br /><br /> Please follow the Link to reset your password:<br /><br />" + Environment.NewLine + "<a runat=" + "server" + " href=http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + ">http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + "</a>" + Environment.NewLine + "<br /><br /><br />Kind regards, <br /><span style='color: #043381'><b>VERAG | EDV Support</b></span><br /><span style='color: #043381'>VERAG Spedition AG | A 4975 Suben, Nr. 100</span><br /><span style='color: #043381'>T.<a href='tel:+43 7711 2777-xx'>+43 7711 2777-xx</a> |<a href='mailto:@support@verag.ag'>support@verag.ag</a> |" + emailnr + "FN xxxxxxx</span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext2 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext3 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext4 + "</i></span><br />", username, password)
|
||||||
ElseIf String.IsNullOrWhiteSpace(HttpContext.Current.Request.ServerVariables("SERVER_NAME")) = False Then
|
ElseIf String.IsNullOrWhiteSpace(HttpContext.Current.Request.ServerVariables("SERVER_NAME")) = False Then
|
||||||
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
|
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
|
||||||
ServPort = String.Empty
|
MsgBox(getdomianenvironment)
|
||||||
|
ServPort = ":" + Request.ServerVariables("SERVER_PORT")
|
||||||
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
||||||
mailto = email
|
mailto = email
|
||||||
Betreff = "Passwort reset"
|
Betreff = "Passwort reset"
|
||||||
@@ -344,7 +346,7 @@ Partial Class ForgotPW
|
|||||||
Dim Ausschusstext2 As String = "und Zinsen zuletzt auf Zölle angerechnet. Zahlbar und klagbar in Schärding oder Ried. Steuer-Zoll-und Tarifauskünfte sind unverbindlich."
|
Dim Ausschusstext2 As String = "und Zinsen zuletzt auf Zölle angerechnet. Zahlbar und klagbar in Schärding oder Ried. Steuer-Zoll-und Tarifauskünfte sind unverbindlich."
|
||||||
Dim Ausschusstext3 As String = "We operate exclusively on the basis of the General Freight Forwarding Terms and Conditions in the respectively applicable version. Payments are initially"
|
Dim Ausschusstext3 As String = "We operate exclusively on the basis of the General Freight Forwarding Terms and Conditions in the respectively applicable version. Payments are initially"
|
||||||
Dim Ausschusstext4 As String = "charged on freight, fees and interests and at last on customs duties. The place of jurisdiction: Schärding / Ried. Tax, customs and tariff information are not binding."
|
Dim Ausschusstext4 As String = "charged on freight, fees and interests and at last on customs duties. The place of jurisdiction: Schärding / Ried. Tax, customs and tariff information are not binding."
|
||||||
htmlbody = String.Format("Dear, {0},<br /><br /> Please follow the Link to reset your password:<br /><br />" + Environment.NewLine + "<a runat=" + "server" + " href=http://" + getdomianenvironment + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + ">http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + "</a>" + Environment.NewLine + "<br /><br /><br />Kind regards, <br /><span style='color: #043381'><b>VERAG | EDV Support</b></span><br /><span style='color: #043381'>VERAG Spedition AG | A 4975 Suben, Nr. 100</span><br /><span style='color: #043381'>T.<a href='tel:+43 7711 2777-xx'>+43 7711 2777-xx</a> |<a href='mailto:@support@verag.ag'>support@verag.ag</a> | " + emailnr + "FN xxxxxxx</span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext2 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext3 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext4 + "</i></span><br />", username, password)
|
htmlbody = String.Format("Dear {0},<br /><br /> Please follow the Link to reset your password:<br /><br />" + Environment.NewLine + "<a runat=" + "server" + " href=http://" + getdomianenvironment + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + ">http://" + getdomianenvironment + ServPort + "/login/ChangePW.aspx?Par1=" + tokenname + "&Par2=" + VERAG_PROG_ALLGEMEIN.cCryptography2.Encrypt(username) + "&Par3=" + userID + "</a>" + Environment.NewLine + "<br /><br /><br />Kind regards, <br /><span style='color: #043381'><b>VERAG | EDV Support</b></span><br /><span style='color: #043381'>VERAG Spedition AG | A 4975 Suben, Nr. 100</span><br /><span style='color: #043381'>T.<a href='tel:+43 7711 2777-xx'>+43 7711 2777-xx</a> |<a href='mailto:@support@verag.ag'>support@verag.ag</a> | " + emailnr + "FN xxxxxxx</span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext2 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext3 + "</i></span><br /><span style='color: #043381;font-size:12px'><i>" + Ausschusstext4 + "</i></span><br />", username, password)
|
||||||
ElseIf String.IsNullOrWhiteSpace(HttpContext.Current.Request.ServerVariables("SERVER_NAME")) = True Then
|
ElseIf String.IsNullOrWhiteSpace(HttpContext.Current.Request.ServerVariables("SERVER_NAME")) = True Then
|
||||||
'MsgBox("Error09:" + Environment.NewLine + "The Domain could not be vaildated. Check Link please or contact the Administrator of the program.")
|
'MsgBox("Error09:" + Environment.NewLine + "The Domain could not be vaildated. Check Link please or contact the Administrator of the program.")
|
||||||
lblMessage.ForeColor = Color.OrangeRed
|
lblMessage.ForeColor = Color.OrangeRed
|
||||||
|
|||||||
Reference in New Issue
Block a user