XMTT 6 years ago
parent
commit
a0e79eb042

+ 7 - 0
src/main/java/com/ekexiu/project/storage/system/service/SysService.java

153
        this.userDao.changePw(con, StringUtil.md5(newPw), u.getId());
153
        this.userDao.changePw(con, StringUtil.md5(newPw), u.getId());
154
    }
154
    }
155
155
156
    @Get
157
    @Path("/resetPw")
158
    @LoginUser
159
    public void resetPw(@JdbcConn(true) Connection con,String id)throws SQLException {
160
        this.userDao.changePw(con, StringUtil.md5(DEFAULT_PW_STR), id);
161
    }
162
156
}
163
}