#
luxiaotao1123
2020-07-22 dc210006de9ebe049c0dd5fcc1afcf1b23fa2de8
#
5个文件已修改
14 ■■■■■ 已修改文件
src/main/java/com/zy/common/web/AuthController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/user/user.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/password.html 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/user/user.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/user/user_detail.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/web/AuthController.java
@@ -66,7 +66,7 @@
        if (user.getStatus()!=1){
            return R.parse(CodeRes.USER_10002);
        }
        if (!Cools.md5(user.getPassword()).equals(password)){
        if (!user.getPassword().equals(password)){
            return R.parse(CodeRes.USER_10003);
        }
        String token = Cools.enToken(System.currentTimeMillis() + mobile, user.getPassword());
src/main/webapp/static/js/user/user.js
@@ -249,7 +249,7 @@
            hostId: $('#hostId').val(),
            username: $('#username').val(),
            mobile: $('#mobile').val(),
            password: $('#password').val(),
            password: hex_md5($('#password').val()),
            roleId: $('#roleId').val(),
            createTime: top.strToDate($('#createTime\\$').val()),
            status: $('#status').val(),
src/main/webapp/views/password.html
@@ -63,6 +63,8 @@
</div>
</body>
<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../static/js/tools/md5.js"></script>
<script type="text/javascript" src="../static/js/common.js" charset="utf-8"></script>
<script src="../static/layui/layui.js"></script>
<script>
    layui.use(['form'], function() {
@@ -73,7 +75,7 @@
        form.verify({
            checkPwd: function(val) {
                if (val === ""){
                    return "当前密码不能为空";
                    // return "当前密码不能为空";
                }
                if (parent.$('#password').val() !== val) {
                    return "密码不匹配";
@@ -86,7 +88,7 @@
                if (val.length < 4) {
                    return "不能少于4个字符";
                }
                if (parent.$('#password').val() === val) {
                if (parent.$('#password').val() !== hex_md5(val)) {
                    return "与旧密码不能相同";
                }
            },
@@ -100,7 +102,7 @@
        form.on('submit(savePwd)', function (data) {
            var user = {
                id: parent.$('#id').val(),
                password: $('#password').val(),
                password: hex_md5($('#password').val()),
            };
            $.ajax({
                url: baseUrl+"/user/update/auth",
src/main/webapp/views/user/user.html
@@ -66,6 +66,7 @@
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/tools/md5.js"></script>
<script type="text/javascript" src="../../static/js/user/user.js" charset="utf-8"></script>
<iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe>
src/main/webapp/views/user/user_detail.html
@@ -81,6 +81,7 @@
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/tools/md5.js"></script>
<script type="text/javascript" src="../../static/js/user/user.js" charset="utf-8"></script>
</html>