PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 1ms

/AnotherStartup/Account/ForgotPassword.cshtml

#
Razor | 35 lines | 34 code | 1 blank | 0 comment | 3 complexity | 9fc919dc30c14d2c96b9cc19c2e1994f MD5 | raw file
 1@{this.Init(layout: "~/_SiteLayout.cshtml", title: "Forget Your Password?", action: Account.ForgotPassword.Init);} 
 2 
 3<form method="post" action="">
 4    <fieldset>
 5        <legend>Password Reset Instructions Form</legend>
 6        @if (!WebMail.SmtpServer.IsEmpty()) {
 7            <p>
 8                We will send password reset instructions to the email address associated with your account. 
 9            </p>
10            if (Page.IsReadonly) {
11                <p class="message success">
12                    Instructions to reset your password have been sent to the specified email address.
13                </p>
14            }            
15            <ol>
16                <li class="email">
17                    <label for="email">Email Address</label>
18                    <input type="text" id="email" name="email" title="Email address" value="@Page.Model.Email" @if(Page.IsReadonly){<text>disabled="disabled"</text>} @if(Page.Errors.Email.IsError){<text>class="error-field"</text>} />
19                    @if (Page.Errors.Email.IsError) {
20                        <label class="validation-error">@Page.Errors.Email.Message</label>
21                    }
22                </li>
23            </ol>
24            <p class="form-actions">
25                <input type="submit" value="Send Instructions" @if(Page.IsReadonly){<text>disabled="disabled"</text>}/>
26            </p>
27        } else {
28            <p class="message info">
29                Password recovery is disabled for this website because the SMTP server is 
30                not configured correctly. Please contact the owner of this site to reset 
31                your password.
32            </p>
33        }
34    </fieldset>
35</form>