Center for Ejendomme og Intern Service

Tilbage knap/ikon
Tilbage knap/ikon
Tilbage knap/ikon
Indlæser
Error compiling template "Designs/Fredensborg/Extranet/Login.cshtml"
Line 26: 'Dynamicweb.Security.UserManagement.User' does not contain a definition for 'LoggedIn' and no extension method 'LoggedIn' accepting a first argument of type 'Dynamicweb.Security.UserManagement.User' could be found (are you missing a using directive or an assembly reference?)

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @if (!Pageview.User.LoggedIn) 4 { 5 <div id="loginMsg">@GetString("Item.Area.LoginMessage")</div> 6 <form id="ExtUserForm" class="col-xs-12 DMForms userRelatedForms" action="/" name="ExtUserForm_Main" method="post"> 7 <input type="hidden" name="redirect" value="/Default.aspx?ID=@Pageview.Page.ID"> 8 <input type="hidden" name="ID" value="@Pageview.Page.ID"> 9 <div class="recoverPasswordCheckBox"> 10 <input type="hidden" name="ForgotPasswordMailTemplate" value="RecoveryPasswordTemplate.html"> 11 <input type="hidden" name="ForgotPasswordMailSubject" value='@Translate("passwordRecover","Password recover")'> 12 <input type="hidden" name="ForgotPasswordConfirm" value='@Translate("confirmRecoverPassword","Confirm recover password")'> 13 <input type="checkbox" name="ForgotPassword" id="ForgotPasswordCheckbox" value="false" class="hide"> 14 </div> 15 <fieldset class="mandatory TextInput"> 16 <!--<label for="Username">@Translate("username","Username")</label>--> 17 <input type="text" id="Username" name="Username" value="" tabindex="1"> 18 </fieldset> 19 <fieldset class="mandatory TextInput"> 20 <!--<label for="Password">@Translate("password","Password")</label>--> 21 <input type="password" id="Password" name="Password" value="" tabindex="2"> 22 </fieldset> 23 <div class="col-xs-12 noPadding"> 24 <input class="btn btn-bg" name="LoginAction" type="submit" value='@Translate("login","Login")'> 25 </div> 26 <!--<div class="forgotButtons col-xs-12 noPadding"> 27 <a id="forgotPasswordID" href="javascript:void(0)">@Translate("forgotYourPassword?","Forgot your password?")</a> 28 </div>--> 29 </form> 30 } 31 32 @SnippetStart("jsOnLoad") 33 onLoadLoginForm(); 34 @SnippetEnd("jsOnLoad")