More improvements to registration, leaf input create, and charting

This commit is contained in:
2020-01-14 14:10:11 -05:00
parent 8452a9cce0
commit 046cda40b4
18 changed files with 180 additions and 77 deletions
+10
View File
@@ -8,6 +8,7 @@ namespace LeafWeb.WebCms.Services
public class UrlService
{
private readonly string _downloadUrl;
private readonly string _chartUrl;
private readonly string _verifyEmailUrl;
public UrlService()
@@ -16,6 +17,10 @@ namespace LeafWeb.WebCms.Services
ConfigurationManager.AppSettings["LeafWebUrl"]
+ ConfigurationManager.AppSettings["ResultsDownloadPath"];
_chartUrl =
ConfigurationManager.AppSettings["LeafWebUrl"]
+ ConfigurationManager.AppSettings["ChartPath"];
_verifyEmailUrl =
ConfigurationManager.AppSettings["LeafWebUrl"]
+ ConfigurationManager.AppSettings["MemberVerifyPath"];
@@ -26,6 +31,11 @@ namespace LeafWeb.WebCms.Services
return string.Format(_downloadUrl, leafInput.UniqueToken);
}
public string GetChartUrl(LeafInput leafInput)
{
return string.Format(_chartUrl, leafInput.UniqueToken);
}
public string GetVerifyEmailURl(IMember member)
{
var memberEmail = member.Email;