Logo
Error parsing template "Designs/Dwsimple/UserManagement/Login/password_recovery.cshtml"
Line 51: (50:21) - 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") 9 </h3> 10 <br /> 11 12 <form method="post" action="/Default.aspx?id=@GetString("Global:Page.ID")"> 13 <input type="hidden" name="ForgotPasswordMailTemplate" value="@GetString("UserManagement:User.Login.EmailTemplate")" /> 14 <input type="hidden" name="ForgotPasswordSenderEmail" value="@GetString("UserManagement:User.Login.EmailSender")" /> 15 <input type="hidden" name="ForgotPasswordMailSubject" value="@GetString("UserManagement:User.Login.EmailSubject")" /> 16 @if (GetValue("UserManagement:User.Login.FoundUsersCount")=0 || GetValue("UserManagement:User.Login.FoundUsersCount")>1) 17 { 18 <div class="info-pane error">@Translate("User not found!", "User not found!")</div> 19 } 20 foreach (LoopItem loginfield in GetLoop("UserManagement:User.Login.Fields")) 21 { 22 <div class="pr-field"> 23 <label class="title" for="@loginfield.GetString("Field.Name")"> 24 @loginfield.GetString("Field.Title"): 25 </label> 26 @loginfield.GetString("Field.Input") 27 @if (!string.IsNullOrWhiteSpace(loginfield.GetString("Field.Error"))) 28 { 29 <label class="error" for="@loginfield.GetString("Field.Name")">@loginfield.GetString("Field.Error")</label> 30 } 31 </div> 32 } 33 <div class="pr-field commands"> 34 <button type="submit" name="LoginAction" value="Recovery">@Translate("Submit", "Submit")</button> 35 </div> 36 </form> 37 } 38 39 @if (GetString("UserManagement:User.Login.Action") == "RecoveryLinkSent") 40 { 41 <div class="info-pane"> 42 <div class="title">@Translate("Check your email", "Check your email")</div> 43 <div class="body"> 44 @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.") 45 </div> 46 </div> 47 } 48 49 @if (GetString("UserManagement:User.Login.Action") == "NewPasswordForm") 50 { 51 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") != True) 52 { 53 <div class="info-pane"> 54 <div class="title">@Translate("Something went wrong", "Something went wrong")</div> 55 <div class="body"> 56 @Translate("Try recover password", "Try recover password") <a href="/default.aspx?id=@GetString("Global:Page.ID")">@Translate("again", "again")<a>. 57 </div> 58 </div> 59 } 60 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") = True && GetBoolean("UserManagement:User.Login.RecoveryToken.OutOfDate" = True) 61 { 62 <div class="info-pane"> 63 <div class="title">@Translate("The recovery password link out of date", "The recovery password link out of date")</div> 64 <div class="body"> 65 @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>. 66 </div> 67 </div> 68 } 69 @if (GetBoolean("UserManagement:User.Login.RecoveryToken.FoundUser") = True && GetBoolean("UserManagement:User.Login.RecoveryToken.OutOfDate") != True) 70 { 71 <h3 class="head"> 72 @Translate("Choose a new password", "Choose a new password") 73 <br /> 74 <small> 75 <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") 76 </small> 77 </h3> 78 <form method="post" action="/Default.aspx?id=@GetString("Global:Page.ID")"> 79 <input type="hidden" name="RecoveryToken" value="@GetString("UserManagement:User.Login.RecoveryToken")" /> 80 <input type="hidden" name="ForgotPasswordMailTemplate" value="@GetString("UserManagement:User.Login.EmailTemplate")" /> 81 <input type="hidden" name="ForgotPasswordSenderEmail" value="@GetString("UserManagement:User.Login.EmailSender")" /> 82 <input type="hidden" name="ForgotPasswordMailSubject" value="@GetString("UserManagement:User.Login.EmailSubject")" /> 83 84 <div class="pr-field"> 85 <label class="title" for="@GetString("UserManagement:User.Login.Field.NewPassword.Name")"> 86 @Translate("New Password", "New Password"): 87 </label> 88 @GetString("UserManagement:User.Login.Field.NewPassword.Input") 89 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.Field.NewPassword.Error"))) 90 { 91 <label class="error" for="@GetString("UserManagement:User.Login.Field.NewPassword.Name")">@GetString("UserManagement:User.Login.Field.NewPassword.Error")</label> 92 } 93 </div> 94 <div class="pr-field"> 95 <label class="title" for="@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Name")"> 96 Confirm Password: 97 </label> 98 @GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Input") 99 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Error"))) 100 { 101 <label class="error" for="@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Name")">@GetString("UserManagement:User.Login.Field.NewPasswordConfirm.Error")</label> 102 } 103 </div> 104 <div class="pr-field commands"> 105 <button type="submit" name="LoginAction" value="ChangePassword">@Translate("Submit", "Submit")</button> 106 </div> 107 </form> 108 } 109 } 110 111 @if (GetString("UserManagement:User.Login.Action") == "PasswordChanged") 112 { 113 <div class="info-pane"> 114 <div class="title">Congratulations!</div> 115 <div class="body"> 116 Password changed 117 </div> 118 </div> 119 } 120 </div> 121 </div> 122 </div> 123 </div>

Kontakt os

 

Sociale links

  

 

Nyhedsbrev

Tilmeld dig hvis du vil modtage vores nyhedsbrev.

 
Cookies

Dette website bruger cookies til statistik og til at levere den bedste brugeroplevelse til dig
Du kan altid slette cookies i din browsers indstillinger.  Læs mere

Accepter ikke cookies Accepter kun funktions cookies Accepter alle cookies