Logo
Error parsing template "Designs/Dwsimple/UserManagement/Login/password_recovery.cshtml"
Line 53: Unexpected "if" keyword after "@" character.  Once inside code, you do not need to prefix constructs like "if" with "@".
1 <div class="container"> 2 <div class="row"> 3 <div class="col-md-6 col-sm-6 col-xs-12"> 4 <div class="wp-block default user-form"> 5 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.Action=Recovery"))) 6 { 7 <h3> 8 @Translate("Get back into your account", "Get back into your account")zzz 9 </h3> 10 <br /> 11 12 <div class="info-pane error">@Translate("User not found!", "User not found!")cccc</div> 13 14 @*<form method="post" action="/Default.aspx?id=@GetString("Global:Page.ID")"> 15 <input type="hidden" name="ForgotPasswordMailTemplate" value="@GetString("UserManagement:User.Login.EmailTemplate")" /> 16 <input type="hidden" name="ForgotPasswordSenderEmail" value="@GetString("UserManagement:User.Login.EmailSender")" /> 17 <input type="hidden" name="ForgotPasswordMailSubject" value="@GetString("UserManagement:User.Login.EmailSubject")" /> 18 @if (GetValue("UserManagement:User.Login.FoundUsersCount")=0 || GetValue("UserManagement:User.Login.FoundUsersCount")>1) 19 { 20 <div class="info-pane error">@Translate("User not found!", "User not found!")</div> 21 } 22 foreach (LoopItem loginfield in GetLoop("UserManagement:User.Login.Fields")) 23 { 24 <div class="pr-field"> 25 <label class="title" for="@loginfield.GetString("Field.Name")"> 26 @loginfield.GetString("Field.Title"): 27 </label> 28 @loginfield.GetString("Field.Input") 29 @if (!string.IsNullOrWhiteSpace(loginfield.GetString("Field.Error"))) 30 { 31 <label class="error" for="@loginfield.GetString("Field.Name")">@loginfield.GetString("Field.Error")</label> 32 } 33 </div> 34 } 35 <div class="pr-field commands" style="display:none;"> 36 <button type="submit" name="LoginAction" value="Recovery" style="display:none;">@Translate("Submit", "Submit")</button> 37 </div> 38 </form>*@ 39 } 40 41 @if (GetString("UserManagement:User.Login.Action") == "RecoveryLinkSent") 42 { 43 <div class="info-pane"> 44 <div class="title">@Translate("Check your email", "Check your email")</div> 45 <div class="body"> 46 @Translate("Check your email - we sent you an email with a link. Click it to continue to reset your password.", "Check your email - we sent you an email with a link. Click it to continue to reset your password.") 47 </div> 48 </div> 49 } 50 51 @if (GetString("UserManagement:User.Login.Action") == "NewPasswordForm") 52 { 53 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") != True) 54 { 55 <div class="info-pane"> 56 <div class="title">@Translate("Something went wrong", "Something went wrong")</div> 57 <div class="body"> 58 @Translate("Try recover password", "Try recover password") <a href="/default.aspx?id=@GetString("Global:Page.ID")">@Translate("again", "again")<a>. 59 </div> 60 </div> 61 } 62 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") = True && GetBoolean("UserManagement:User.Login.RecoveryToken.OutOfDate" = True) 63 { 64 <div class="info-pane"> 65 <div class="title">@Translate("The recovery password link out of date", "The recovery password link out of date")</div> 66 <div class="body"> 67 @Translate("The recovery password link out of date", "The recovery password link out of date") @Translate("Try recover password", "Try recover password") <a href="/default.aspx?id=@GetString("Global:Page.ID")">@Translate("again", "again")<a>. 68 </div> 69 </div> 70 } 71 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") = True && GetBoolean("UserManagement:User.Login.RecoveryToken.OutOfDate") != True) 72 { 73 <h3 class="head"> 74 @Translate("Choose a new password", "Choose a new password") 75 <br /> 76 <small> 77 <strong>@Translate("Notice", "Notice"):</strong> @Translate("A strong password is a combination of letters and punctuation marks", "A strong password is a combination of letters and punctuation marks") 78 </small> 79 </h3> 80 <form method="post" action="/Default.aspx?id=@GetString("Global:Page.ID")"> 81 <input type="hidden" name="RecoveryToken" value="@GetString("UserManagement:User.Login.RecoveryToken")" /> 82 <input type="hidden" name="ForgotPasswordMailTemplate" value="@GetString("UserManagement:User.Login.EmailTemplate")" /> 83 <input type="hidden" name="ForgotPasswordSenderEmail" value="@GetString("UserManagement:User.Login.EmailSender")" /> 84 <input type="hidden" name="ForgotPasswordMailSubject" value="@GetString("UserManagement:User.Login.EmailSubject")" /> 85 86 <div class="pr-field"> 87 <label class="title" for="@GetString("UserManagement:User.Login.Field.NewPassword.Name")"> 88 @Translate("New Password", "New Password"): 89 </label> 90 @GetString("UserManagement:User.Login.Field.NewPassword.Input") 91 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.Field.NewPassword.Error"))) 92 { 93 <label class="error" for="@GetString("UserManagement:User.Login.Field.NewPassword.Name")">@GetString("UserManagement:User.Login.Field.NewPassword.Error")</label> 94 } 95 </div> 96 <div class="pr-field"> 97 <label class="title" for="@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Name")"> 98 Confirm Password: 99 </label> 100 @GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Input") 101 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Error"))) 102 { 103 <label class="error" for="@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Name")">@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Error")</label> 104 } 105 </div> 106 <div class="pr-field commands" > 107 <button type="submit" name="LoginAction" value="ChangePassword" >@Translate("Submit", "Submit")</button> 108 </div> 109 </form> 110 } 111 } 112 113 @if (GetString("UserManagement:User.Login.Action") == "PasswordChanged") 114 { 115 <div class="info-pane"> 116 <div class="title">Congratulations!</div> 117 <div class="body"> 118 Password changed 119 </div> 120 </div> 121 } 122 </div> 123 </div> 124 </div> 125 </div>
Accepter cookies fra dette website

Dette website bruger cookies til at tracke din adfærd og forbedre din brugeroplevelse
Du kan altid slette gemte cookies ved at besøge dine advancerede browser indstillinger
Du kan finde vores cookiepolitik her.

Accepter ikke cookies Accepter kun funktionelle cookies Accepter alle cookies