Sign in
Don't have an account yet? Create account here
Error compiling template "Designs/Swift-v2/Users/UserAuthentication/Login/Login.cshtml" Line 82: 'UserAuthenticationViewModel' does not contain a definition for 'CreatePasswordLink' and no accessible extension method 'CreatePasswordLink' accepting a first argument of type 'UserAuthenticationViewModel' could be found (are you missing a using directive or an assembly reference?) Line 86: 'UserAuthenticationViewModel' does not contain a definition for 'CreatePasswordLink' and no accessible extension method 'CreatePasswordLink' accepting a first argument of type 'UserAuthenticationViewModel' could be found (are you missing a using directive or an assembly reference?) Line 95: 'UserAuthenticationViewModel' does not contain a definition for 'CreateUserLink' and no accessible extension method 'CreateUserLink' accepting a first argument of type 'UserAuthenticationViewModel' could be found (are you missing a using directive or an assembly reference?) Line 101: 'UserAuthenticationViewModel' does not contain a definition for 'CreateUserLink' and no accessible extension method 'CreateUserLink' accepting a first argument of type 'UserAuthenticationViewModel' could be found (are you missing a using directive or an assembly reference?)
1 // <auto-generated/> 2 #pragma warning disable 1591 3 namespace CompiledRazorTemplates.Dynamic 4 { 5 #line hidden 6 using System.Threading.Tasks; 7 using System; 8 using System.Collections.Generic; 9 using System.Linq; 10 using Dynamicweb.Users.Frontend.UserAuthentication; 11 using Dynamicweb.Users.Frontend; 12 using Dynamicweb.Rendering; 13 using Dynamicweb; 14 internal class RazorEngine_bb1aad098bff418c8c95bf70df010a22 : ViewModelTemplate<UserAuthenticationViewModel> 15 { 16 #pragma warning disable 1998 17 public async override global::System.Threading.Tasks.Task ExecuteAsync() 18 { 19 WriteLiteral("\n\n<div class=\"mx-auto w-100\" style=\"max-width: 30rem;\">\n <form method=\"post\">\n <input type=\"hidden\" name=\"redirect\""); 20 BeginWriteAttribute("value", " value=\"", 313, "\"", 346, 1); 21 WriteAttributeValue("", 321, Model.RedirectAfterLogin, 321, 25, false); 22 EndWriteAttribute(); 23 WriteLiteral(">\n"); 24 if(Model.Result == UserAuthenticationResultType.IncorrectLogin) { WriteLiteral(" <div class=\"alert alert-danger\" role=\"alert\">\n "); 25 Write(Translate("The username or password you entered is incorrect. Please try again.")); 26 WriteLiteral("\n </div>\n"); 27 } else if(Model.Result == UserAuthenticationResultType.PasswordLengthInvalid) { WriteLiteral(" <div class=\"alert alert-danger\" role=\"alert\">\n "); 28 Write(Translate("The password you entered does not meet the required length. Please ensure it meets the minimum length criteria and try again.")); 29 WriteLiteral("\n </div>\n"); 30 } else if(Model.Result == UserAuthenticationResultType.ExceededFailedLogOnLimit) { WriteLiteral(" <div class=\"alert alert-danger\" role=\"alert\">\n "); 31 Write(Translate("You have exceeded the maximum number of failed login attempts. Please wait a while before trying again.")); 32 WriteLiteral("\n </div>\n"); 33 } else if(Model.Result == UserAuthenticationResultType.LoginLocked) { WriteLiteral(" <div class=\"alert alert-danger\" role=\"alert\">\n "); 34 Write(Translate("Your account has been locked due to multiple failed login attempts.")); 35 WriteLiteral("\n </div>\n"); 36 } else if(Model.Result == UserAuthenticationResultType.Success) { WriteLiteral(" <div class=\"alert alert-success\" role=\"alert\">\n "); 37 Write(Translate("You have successfully logged in. Welcome back!")); 38 WriteLiteral("\n </div>\n"); 39 } else if (Model.Result != UserAuthenticationResultType.None) { WriteLiteral(" <div class=\"alert alert-danger\">"); 40 Write(Translate(Model.Result.ToString())); 41 WriteLiteral("</div>\n"); 42 } WriteLiteral("\n <div class=\"form-floating mb-4\">\n <input type=\"text\" class=\"form-control\" id=\"Username\" name=\"username\""); 43 BeginWriteAttribute("placeholder", " placeholder=\"", 2240, "\"", 2273, 1); 44 WriteAttributeValue("", 2254, Translate("Email"), 2254, 19, false); 45 EndWriteAttribute(); 46 WriteLiteral(" required>\n <label for=\"Username\">"); 47 Write(Translate("Email")); 48 WriteLiteral("</label>\n </div>\n\n <div class=\"form-floating mb-2\">\n <input type=\"password\" class=\"form-control\" id=\"Password\" name=\"password\""); 49 BeginWriteAttribute("placeholder", " placeholder=\"", 2489, "\"", 2525, 1); 50 WriteAttributeValue("", 2503, Translate("Password"), 2503, 22, false); 51 EndWriteAttribute(); 52 WriteLiteral(" required>\n <label for=\"Password\">"); 53 Write(Translate("Password")); 54 WriteLiteral(@"</label> </div> <div class=""d-flex justify-content-between mb-4""> <div class=""form-check""> <input class=""form-check-input"" type=""checkbox"" value=""True"" name=""Autologin"" id=""RememberMe""> <label class=""form-check-label"" for=""RememberMe"">"); 55 Write(Translate("Keep me signed in")); 56 WriteLiteral("</label>\n </div>\n\n"); 57 if (!string.IsNullOrEmpty(Model.CreatePasswordLink)) { WriteLiteral(" <div class=\"d-flex justify-content-end fw-bold\">\n <a"); 58 BeginWriteAttribute("href", " href=\"", 3116, "\"", 3148, 1); 59 WriteAttributeValue("", 3123, Model.CreatePasswordLink, 3123, 25, false); 60 EndWriteAttribute(); 61 WriteLiteral(" class=\"text-decoration-none text-decoration-underline-hover\">"); 62 Write(Translate("Forgot password?")); 63 WriteLiteral("</a>\n </div>\n"); 64 } WriteLiteral(" </div>\n\n <div class=\"d-grid align-items-center\">\n <button type=\"submit\" class=\"btn btn-primary\" data-dw-button=\"primary\" id=\"SignIn\">"); 65 Write(Translate("Sign in")); 66 WriteLiteral("</button>\n </div>\n\n"); 67 if (!string.IsNullOrEmpty(Model.CreateUserLink)) { WriteLiteral(" <div class=\"d-flex justify-content-center mt-4 gap-2\">\n "); 68 Write(Translate("Don't have an account?")); 69 WriteLiteral(" \n <span class=\"fw-bold\">\n <a"); 70 BeginWriteAttribute("href", " href=\"", 3739, "\"", 3767, 1); 71 WriteAttributeValue("", 3746, Model.CreateUserLink, 3746, 21, false); 72 EndWriteAttribute(); 73 WriteLiteral(" class=\"text-decoration-none text-decoration-underline-hover\">"); 74 Write(Translate("Sign up")); 75 WriteLiteral("</a>\n </span>\n </div>\n"); 76 } WriteLiteral(" </form>\n</div>\n"); 77 } 78 #pragma warning restore 1998 79 } 80 } 81 #pragma warning restore 1591 82
1 @inherits ViewModelTemplate<UserAuthenticationViewModel> @using Dynamicweb.Users.Frontend.UserAuthentication @using Dynamicweb.Users.Frontend @using Dynamicweb.Rendering @using Dynamicweb <div class="mx-auto w-100" style="max-width: 30rem;"> <form method="post"> <input type="hidden" name="redirect" value="@Model.RedirectAfterLogin"> @{ if(Model.Result == UserAuthenticationResultType.IncorrectLogin) { <div class="alert alert-danger" role="alert"> @Translate("The username or password you entered is incorrect. Please try again.") </div> } else if(Model.Result == UserAuthenticationResultType.PasswordLengthInvalid) { <div class="alert alert-danger" role="alert"> @Translate("The password you entered does not meet the required length. Please ensure it meets the minimum length criteria and try again.") </div> } else if(Model.Result == UserAuthenticationResultType.ExceededFailedLogOnLimit) { <div class="alert alert-danger" role="alert"> @Translate("You have exceeded the maximum number of failed login attempts. Please wait a while before trying again.") </div> } else if(Model.Result == UserAuthenticationResultType.LoginLocked) { <div class="alert alert-danger" role="alert"> @Translate("Your account has been locked due to multiple failed login attempts.") </div> } else if(Model.Result == UserAuthenticationResultType.Success) { <div class="alert alert-success" role="alert"> @Translate("You have successfully logged in. Welcome back!") </div> } else if (Model.Result != UserAuthenticationResultType.None) { <div class="alert alert-danger">@Translate(Model.Result.ToString())</div> } } <div class="form-floating mb-4"> <input type="text" class="form-control" id="Username" name="username" placeholder="@Translate("Email")" required> <label for="Username">@Translate("Email")</label> </div> <div class="form-floating mb-2"> <input type="password" class="form-control" id="Password" name="password" placeholder="@Translate("Password")" required> <label for="Password">@Translate("Password")</label> </div> <div class="d-flex justify-content-between mb-4"> <div class="form-check"> <input class="form-check-input" type="checkbox" value="True" name="Autologin" id="RememberMe"> <label class="form-check-label" for="RememberMe">@Translate("Keep me signed in")</label> </div> @if (!string.IsNullOrEmpty(Model.CreatePasswordLink)) { <div class="d-flex justify-content-end fw-bold"> <a href="@Model.CreatePasswordLink" class="text-decoration-none text-decoration-underline-hover">@Translate("Forgot password?")</a> </div> } </div> <div class="d-grid align-items-center"> <button type="submit" class="btn btn-primary" data-dw-button="primary" id="SignIn">@Translate("Sign in")</button> </div> @if (!string.IsNullOrEmpty(Model.CreateUserLink)) { <div class="d-flex justify-content-center mt-4 gap-2"> @Translate("Don't have an account?") <span class="fw-bold"> <a href="@Model.CreateUserLink" class="text-decoration-none text-decoration-underline-hover">@Translate("Sign up")</a> </span> </div> } </form> </div>