Fix JS error when clicking a reset password link twice (#12845)

This commit is contained in:
Kenn Jacobsen
2022-08-16 09:29:52 +02:00
committed by GitHub
parent 2f5759dba2
commit de73ba7256

View File

@@ -104,7 +104,7 @@ public static class HtmlHelperBackOfficeExtensions
/// <param name="html"></param>
/// <param name="val"></param>
/// <returns></returns>
public static IHtmlContent AngularValueResetPasswordCodeInfoScript(this IHtmlHelper html, object val)
public static IHtmlContent AngularValueResetPasswordCodeInfoScript(this IHtmlHelper html, object? val)
{
var sb = new StringBuilder();
sb.AppendLine();
@@ -116,6 +116,8 @@ public static class HtmlHelperBackOfficeExtensions
{
sb.AppendFormat(@"errors.push(""{0}"");", error).AppendLine();
}
val = null;
}
sb.AppendLine(@"app.value(""resetPasswordCodeInfo"", {");