Browse Source

重置密码鼠标按下显示密码

pull/478/head
RuoYi 1 year ago
parent
commit
d18cd2e662
  1. 7
      ruoyi-admin/src/main/resources/templates/system/user/resetPwd.html

7
ruoyi-admin/src/main/resources/templates/system/user/resetPwd.html

@ -16,7 +16,12 @@
<div class="form-group">
<label class="col-sm-3 control-label">输入密码:</label>
<div class="col-sm-8">
<input class="form-control" type="password" name="password" id="password" th:value="${@config.getKey('sys.user.initPassword')}">
<div class="input-group">
<input class="form-control" type="password" name="password" id="password" placeholder="请输入重置密码" th:value="${@config.getKey('sys.user.initPassword')}">
<span class="input-group-addon" title="重置密码,鼠标按下显示密码"
onmousedown="$('#password').attr('type','text')"
onmouseup="$('#password').attr('type','password')"><i class="fa fa-key"></i></span>
</div>
</div>
</div>
</form>

Loading…
Cancel
Save