set user password , if you don't want to change the password , leave password empty

This commit is contained in:
liuzheng712
2015-11-05 14:30:59 +08:00
parent 6934380b9c
commit 09087a4d8f
3 changed files with 8 additions and 6 deletions

View File

@@ -38,9 +38,9 @@
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">密码<span class="red-fonts">*</span></label>
<label for="password" class="col-sm-2 control-label">密码</label>
<div class="col-sm-8">
<input id="password" name="password" placeholder="Password" type="password" class="form-control" value="{{ user.password }}">
<input id="password" name="password" placeholder="Password" type="password" class="form-control">
<span class="help-block m-b-none">
登陆web的密码
</span>
@@ -155,7 +155,7 @@ $('#userForm').validator({
msg: {required: "必须填写!"}
},
"password": {
rule: "required;length[6~50]",
rule: "length[6~50]",
tip: "输入密码",
ok: "",
msg: {required: "必须填写!"}