@{
    Layout = "~/Areas/Member/Views/_LoginLayoutPage.cshtml";
    ViewBag.Title = "找回密码";
    CurrentUser findUser = (CurrentUser)ViewBag.FindUser;
}

<div class="container">
    <div class="loginBox clearfix">

        <div class="row header">
            <div class="col-md-6 col-xs-6">

            </div>
            <div class="col-md-6 col-xs-6 text-right">
                没有账户？<a href="@Url.Action("Index","Reg")">去注册</a>
            </div>
        </div>

        <div class="content-box">

            <div class="media logo-media"></div>
            <div class="login-sign">重设密码</div>

            <form method="post" id="regForm" class="">
                <div class="validate-all-tips-box"></div>
                <div class="form-group">
                    <label class="control-label">用户名：</label>
                    <div class="controls">
                        <input type="text" class="form-control" id="username" name="username" value="@findUser.UserName" readonly />
                        <span class="help-block"></span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label">重设密码：</label>
                    <div class="controls ">
                        <input type="password" class="form-control" name="password" id="password" data-validate="dataType:'password',nullMsg:'请填写密码!'" maxlength="16">
                        <span class="help-block"></span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label">密码确认：</label>
                    <div class="controls">
                        <input type="password" class="form-control" name="password1" id="password1" data-validate="dataType:'*',nullMsg:'请填写确认密码!',errorMsg:'两次密码输入不一致!',compare:'password'" maxlength="16">
                        <span class="help-block"></span>
                    </div>
                </div>

                <div class="form-group">
                    <div class="controls">
                        @Html.AntiForgeryToken()
                        <button type="button" class="btn  btn-primary btn-lg col-xs-12 col-md-12 ui-pagePost" data-custom-params="url:'@Url.Action("ModifyPassword")',callBack:'Success',successMsg:'',failCallBack:''">下一步</button>
                    </div>
                </div>
            </form>
        </div>
            </div>
        </div>
        <script type="text/javascript">

   function Success(result)
   {
      location.href = "@Url.Action("Success")?username=" +UrlEncode(result.Description);
    }
        </script>
