EMail deesign änderungen
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
CdnPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js",
|
CdnPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js",
|
||||||
CdnDebugPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.js"
|
CdnDebugPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.js"
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application_End(object sender, EventArgs e)
|
void Application_End(object sender, EventArgs e)
|
||||||
@@ -24,7 +23,6 @@
|
|||||||
Session.Remove("SessID");
|
Session.Remove("SessID");
|
||||||
Session.Remove("urltochangepw");
|
Session.Remove("urltochangepw");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Application_Error(object sender, EventArgs e)
|
void Application_Error(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -48,6 +46,4 @@
|
|||||||
Session.Remove("SessID");
|
Session.Remove("SessID");
|
||||||
Session.Remove("urltochangepw");
|
Session.Remove("urltochangepw");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ Partial Class login_ForgotPW
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
MsgBox("3" + email + " " + username)
|
' MsgBox("3" + email + " " + username)
|
||||||
|
|
||||||
'Mobil
|
'Mobil
|
||||||
ElseIf txtEmail.Text = "E-Mail" And txt_Username.Text = "Username" And Not txtEmail_M.Text = "E-Mail" And Not txt_Username_M.Text = "Username" And String.IsNullOrEmpty(txtEmail_M.Text) = False And String.IsNullOrEmpty(txt_Username_M.Text) = False Then
|
ElseIf txtEmail.Text = "E-Mail" And txt_Username.Text = "Username" And Not txtEmail_M.Text = "E-Mail" And Not txt_Username_M.Text = "Username" And String.IsNullOrEmpty(txtEmail_M.Text) = False And String.IsNullOrEmpty(txt_Username_M.Text) = False Then
|
||||||
valreqtxtEmail_M.Enabled = True
|
valreqtxtEmail_M.Enabled = True
|
||||||
regexval_2_txt_Email_M.Enabled = True
|
regexval_2_txt_Email_M.Enabled = True
|
||||||
regexval_txt_Email.Enabled = False
|
regexval_txt_Email.Enabled = False
|
||||||
@@ -70,19 +70,20 @@ Partial Class login_ForgotPW
|
|||||||
|
|
||||||
valreqtxtusername_M.Validate()
|
valreqtxtusername_M.Validate()
|
||||||
If valreqtxtusername_M.IsValid = True Then
|
If valreqtxtusername_M.IsValid = True Then
|
||||||
check_UserName_regex_M.Validate()
|
check_UserName_regex_M.Validate()
|
||||||
If check_UserName_regex_M.IsValid = False Then
|
If check_UserName_regex_M.IsValid = False Then
|
||||||
check_UserName_regex_M.ErrorMessage = "Annotation: The Username does not match the requirements."
|
check_UserName_regex_M.ErrorMessage = "Annotation: The Username does not match the requirements."
|
||||||
Else
|
Else
|
||||||
check_UserName_regex_M.IsValid = True
|
check_UserName_regex_M.IsValid = True
|
||||||
End If
|
End If
|
||||||
If check_UserName_regex_M.IsValid = True Then
|
If check_UserName_regex_M.IsValid = True Then
|
||||||
username = txt_Username_M.Text
|
username = txt_Username_M.Text
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
MsgBox("Userdaten in App" + Environment.NewLine + email + Environment.NewLine + username + Environment.NewLine + "Userdaten desktop" + txt_Username.Text + Environment.NewLine + txtEmail.Text + Environment.NewLine + "Userdaten Mobil:" + Environment.NewLine + txtEmail_M.Text + Environment.NewLine + txt_Username_M.Text)
|
|
||||||
|
End If
|
||||||
|
'Erweiterte Degub Msg-Box
|
||||||
|
'MsgBox("Userdaten in App" + Environment.NewLine + email + Environment.NewLine + username + Environment.NewLine + "Userdaten desktop" + txt_Username.Text + Environment.NewLine + txtEmail.Text + Environment.NewLine + "Userdaten Mobil:" + Environment.NewLine + txtEmail_M.Text + Environment.NewLine + txt_Username_M.Text)
|
||||||
If String.IsNullOrEmpty(email) = False And String.IsNullOrEmpty(tokenname) = True And String.IsNullOrEmpty(password) = True And String.IsNullOrEmpty(username) = False Then
|
If String.IsNullOrEmpty(email) = False And String.IsNullOrEmpty(tokenname) = True And String.IsNullOrEmpty(password) = True And String.IsNullOrEmpty(username) = False Then
|
||||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||||
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
|
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
|
||||||
@@ -229,20 +230,21 @@ Partial Class login_ForgotPW
|
|||||||
Dim mailto As String = String.Empty
|
Dim mailto As String = String.Empty
|
||||||
Dim Betreff As String = String.Empty
|
Dim Betreff As String = String.Empty
|
||||||
Dim htmlbody As String = String.Empty
|
Dim htmlbody As String = String.Empty
|
||||||
|
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
|
||||||
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")
|
||||||
mailto = email
|
mailto = email
|
||||||
Betreff = "Passwort reset"
|
Betreff = "Passwort reset"
|
||||||
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=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + ">Link</a>" + Environment.NewLine + "<br />Kind regards, <br />VERAG | EDV Support<br />support@verag.ag,", 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=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + ">Link</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'> |" + "FN xxxxxxx</span>" + emailnr, 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
|
ServPort = String.Empty
|
||||||
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
'pagename = Request.ServerVariables("SCRIPT_NAME")
|
||||||
mailto = email
|
mailto = email
|
||||||
Betreff = "Passwort reset"
|
Betreff = "Passwort reset"
|
||||||
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=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + ">Link</a>" + Environment.NewLine + "<br />Kind regards, <br />VERAG | EDV Support<br />support@verag.ag,", 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=" + VERAG_PROG_ALLGEMEIN.cCryptography.Encrypt(tokenname) + ">Link</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'> |" + "FN xxxxxxx</span>", 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