You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UACloudLibraryServer/Areas/Identity/Pages/Account/ForgotPassword.cshtml.cs
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -72,19 +72,9 @@ public async Task<IActionResult> OnPostAsync()
72
72
protocol:Request.Scheme);
73
73
74
74
//notify user of password reset w/ reset link
75
-
StringBuildersbBody=newStringBuilder();
76
-
sbBody.AppendLine("<h1>Reset Password</h1>");
77
-
sbBody.AppendLine("<p>A request has been made to reset your password in the CESMII Cloud Library.");
78
-
sbBody.AppendLine($"<b>Please click here to <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>reset your password</a>.</b></p>");
79
-
sbBody.AppendLine("<p>If you did not make this request, please contact the <a href='mailto:[email protected]'>CESMII DevOps Team</a>.</p>");
80
-
sbBody.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
sbBody.AppendLine($"<b>Please confirm your account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.</b></p>");
177
-
}
178
-
sbBody.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
"CESMII | Cloud Library | New Account Confirmation",
185
-
sbBody.ToString(),
186
-
callbackUrl
187
-
).ConfigureAwait(false);
188
-
189
-
//notify CESMII dev ops as well
190
-
StringBuildersbBody2=newStringBuilder();
191
-
sbBody2.AppendLine("<h1>CESMII UA Cloud Library - New Account Sign Up</h1>");
192
-
sbBody2.AppendLine($"<p>User <b>'{Input.Email}'</b> created an account on the CESMII UA Cloud Library. ");
193
-
sbBody2.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
<p><b>The Industrial Interoperability Standard ™</b></p>
42
-
<p> </p>
43
44
<p><p>{0} Please <a href=""{1}"">click here</a> to continue.</p>
44
45
<p>If the above link does not work, please copy and paste the link below into your browser’s address bar and press enter:</p>
45
-
<p>{1}</p>
46
+
<p>{2}</p>
46
47
<p>If you experience difficulty with this site, please reply to this email for help.</p>
47
48
</p>
48
-
<p><strong>OPC Foundation</strong><br>
49
-
16101 North 82nd Street, Suite 3B<br>
50
-
Scottsdale, Arizona 85260-1868 US<br>
51
-
+1 (480) 483-6644<br>
52
-
<p style=""text-align: center""><a href=""mailto:[email protected]?subject=Unsubscribe%20from%20UA%20Cloud%20Library%20Emails&body="">Click here to unsubscribe.</a></p></p>
53
-
";
49
+
<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute!
50
+
This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.
// <p><b>The Industrial Interoperability Standard ™</b></p>
58
+
// <p> </p>
59
+
// <p><p>{0} Please <a href=""{1}"">click here</a> to continue.</p>
60
+
// <p>If the above link does not work, please copy and paste the link below into your browser’s address bar and press enter:</p>
61
+
// <p>{2}</p>
62
+
// <p>If you experience difficulty with this site, please reply to this email for help.</p>
63
+
// </p>
64
+
// <p><strong>OPC Foundation</strong><br>
65
+
// 16101 North 82nd Street, Suite 3B<br>
66
+
// Scottsdale, Arizona 85260-1868 US<br>
67
+
// +1 (480) 483-6644<br>
68
+
// <p style=""text-align: center""><a href=""mailto:[email protected]?subject=Unsubscribe%20from%20UA%20Cloud%20Library%20Emails&body="">Click here to unsubscribe.</a></p></p>
sbBody.AppendLine("<h1>Welcome to the CESMII UA Cloud Library</h1>");
90
+
sbBody.AppendLine("<p>Thank you for creating an account on the CESMII UA Cloud Library. ");
91
+
if(requireConfirmedAccount)
92
+
{
93
+
sbBody.AppendLine($"<b>Please confirm your account by <a href='{HtmlEncoder.Default.Encode(url)}'>clicking here</a>.</b></p>".ToString());
94
+
}
95
+
sbBody.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
"CESMII | Cloud Library | New Account Confirmation",
100
+
sbBody.ToString()).ConfigureAwait(false);
101
+
102
+
//notify CESMII dev ops as well
103
+
StringBuildersbBody2=newStringBuilder();
104
+
sbBody2.AppendLine("<h1>CESMII UA Cloud Library - New Account Sign Up</h1>");
105
+
sbBody2.AppendLine($"<p>User <b>'{email}'</b> created an account on the CESMII UA Cloud Library.".ToString());
106
+
sbBody2.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
sbBody.AppendLine("<p>A request has been made to reset your password in the CESMII Cloud Library.");
131
+
sbBody.AppendLine($"<b>Please click here to <a href='{HtmlEncoder.Default.Encode(url)}'>reset your password</a>.</b></p>".ToString());
132
+
sbBody.AppendLine("<p>If you did not make this request, please contact the <a href='mailto:[email protected]'>CESMII DevOps Team</a>.</p>");
133
+
sbBody.AppendLine("<p>The CESMII UA Cloud Library is hosted by <a href='https://www.cesmii.org/'>CESMII</a>, the Clean Energy Smart Manufacturing Institute! This Cloud Library contains curated node sets created by CESMII or its members, as well as node sets from the <a href='https://uacloudlibrary.opcfoundation.org/'>OPC Foundation Cloud Library</a>.</p>");
0 commit comments