完善锁屏功能,修改默认密码为123456,更新sql文件

This commit is contained in:
郑杰
2018-10-14 13:01:03 +08:00
parent 65b06947ce
commit 55c279b3c9
5 changed files with 13 additions and 41 deletions
@@ -168,6 +168,7 @@ public class UserController {
* 锁屏
* @return
*/
@Log("锁屏")
@GetMapping(value = "/lock")
public ResponseEntity lock(HttpServletRequest request,@RequestParam String url){
request.getSession(true).setAttribute("lock",url);
@@ -178,6 +179,7 @@ public class UserController {
* 解锁
* @return
*/
@Log("解锁")
@PostMapping(value = "/unlock")
public ResponseEntity unlock(@RequestParam String password){
User user = (User) SecurityUtils.getSubject().getPrincipal();