Skip to content

Commit 5690181

Browse files
committed
更新sql
1 parent b7436c6 commit 5690181

File tree

2 files changed

+102
-11
lines changed

2 files changed

+102
-11
lines changed

src/main/resources/z77z.sql

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
1010
Target Server Version : 50610
1111
File Encoding : 65001
1212

13-
Date: 2017-02-26 19:26:05
13+
Date: 2017-03-05 17:21:22
1414
*/
1515

1616
SET FOREIGN_KEY_CHECKS=0;
@@ -12848,12 +12848,13 @@ CREATE TABLE `sys_permission_init` (
1284812848
-- ----------------------------
1284912849
-- Records of sys_permission_init
1285012850
-- ----------------------------
12851-
INSERT INTO `sys_permission_init` VALUES ('1', '/static/**', 'anon', '1');
12852-
INSERT INTO `sys_permission_init` VALUES ('2', '/ajaxLogin', 'anon', '2');
12853-
INSERT INTO `sys_permission_init` VALUES ('3', '/logout', 'logout', '3');
12854-
INSERT INTO `sys_permission_init` VALUES ('4', '/add', 'perms[权限添加:权限删除],roles[100002]', '4');
12855-
INSERT INTO `sys_permission_init` VALUES ('5', '/**', 'user', '5');
12856-
INSERT INTO `sys_permission_init` VALUES ('6', '/getGifCode', 'anon', '2');
12851+
INSERT INTO `sys_permission_init` VALUES ('1', '/static/**', 'anon,kickout', '1');
12852+
INSERT INTO `sys_permission_init` VALUES ('2', '/ajaxLogin', 'anon,kickout', '2');
12853+
INSERT INTO `sys_permission_init` VALUES ('3', '/logout', 'logout,kickout', '3');
12854+
INSERT INTO `sys_permission_init` VALUES ('4', '/add', 'perms[权限添加:权限删除],roles[100002],kickout', '4');
12855+
INSERT INTO `sys_permission_init` VALUES ('5', '/**', 'user,kickout', '5');
12856+
INSERT INTO `sys_permission_init` VALUES ('6', '/getGifCode', 'anon,kickout', '2');
12857+
INSERT INTO `sys_permission_init` VALUES ('7', '/kickout', 'anon', '2');
1285712858

1285812859
-- ----------------------------
1285912860
-- Table structure for sys_role
@@ -12937,10 +12938,10 @@ CREATE TABLE `sys_user` (
1293712938
-- ----------------------------
1293812939
-- Records of sys_user
1293912940
-- ----------------------------
12940-
INSERT INTO `sys_user` VALUES ('1', 'admin', 'admin', '123', '2016-06-16 11:15:33', '2017-02-26 19:06:49', '1');
12941-
INSERT INTO `sys_user` VALUES ('11', 'root', '8446666@qq.com', '123', '2016-05-26 20:50:54', '2017-02-13 15:49:04', '1');
12942-
INSERT INTO `sys_user` VALUES ('12', '8446666', '8446666', '123', '2016-05-27 22:34:19', '2016-06-15 17:03:16', '1');
12943-
INSERT INTO `sys_user` VALUES ('13', '123', '123', '123', '2016-05-27 22:34:19', '2016-06-15 17:03:16', '0');
12941+
INSERT INTO `sys_user` VALUES ('1', 'admin', 'admin', '123456', '2016-06-16 11:15:33', '2017-03-05 16:08:56', '1');
12942+
INSERT INTO `sys_user` VALUES ('11', 'root', '8446666@qq.com', '123456', '2016-05-26 20:50:54', '2017-02-13 15:49:04', '1');
12943+
INSERT INTO `sys_user` VALUES ('12', '8446666', '8446666', '123456', '2016-05-27 22:34:19', '2016-06-15 17:03:16', '1');
12944+
INSERT INTO `sys_user` VALUES ('13', '123', '123', '123456', '2016-05-27 22:34:19', '2016-06-15 17:03:16', '0');
1294412945

1294512946
-- ----------------------------
1294612947
-- Table structure for sys_user_role
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<!DOCTYPE html>
2+
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
3+
<html>
4+
<head>
5+
<meta http-equiv="content-type" content="text/html">
6+
<meta charset="UTF-8">
7+
<title>SpringBoot学习|登录</title>
8+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/animate.min.css">
9+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/bootstrap.min.css">
10+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/font-awesome.min.css">
11+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/style.min.css">
12+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/iconfont.css">
13+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/js/validator-0.7.3/jquery.validator.css">
14+
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/sweetalert/sweetalert.css">
15+
<script src="<%=request.getContextPath()%>/static/js/jquery-1.8.3.js"></script>
16+
<script type="text/javascript" src="<%=request.getContextPath()%>/static/js/validator-0.7.3/jquery.validator.js"></script>
17+
<script type="text/javascript" src="<%=request.getContextPath()%>/static/js/validator-0.7.3/local/zh_CN.js"></script>
18+
<script type="text/javascript" src="<%=request.getContextPath()%>/static/js/host.js"></script>
19+
<script type="text/javascript" src="<%=request.getContextPath()%>/static/js/sweetalert/sweetalert.min.js"></script>
20+
</head>
21+
<body bgcolor="#FFFFFF">
22+
<div class="middle-box text-center loginscreen ">
23+
<div >
24+
<div onclick="boke();" class="animated animated lightSpeedIn ">
25+
<i class="icon iconfont">&#xf0028;</i>
26+
</div>
27+
<form id="userForm" class=" animated rollIn" data-validator-option="{theme:'yellow_right_effect',stopOnError:true}">
28+
<div class="form-group">
29+
<input type="text" class="form-control" placeholder="用户名" data-rule="用户名:required" id = "username">
30+
</div>
31+
<div class="form-group">
32+
<input type="password" class="form-control" placeholder="密码" data-rule="密码:required;password" id = "password">
33+
</div>
34+
<div class="form-group col-xs-6" style="padding-left: 0px;">
35+
<img src="/getGifCode">
36+
</div>
37+
<div class="form-group col-xs-6">
38+
<span><input type="text" class="form-control" placeholder="验证码" data-rule="验证码:required" id = "vcode"></span>
39+
</div>
40+
<div class="form-group" style="text-align : left">
41+
<label><input type="checkbox" checked="checked" id="rememberMe" style="width: 12px; height: 12px;margin-right: 5px;">记住我</label>
42+
</div>
43+
<button type="submit" class="btn btn-primary block full-width " onclick="login();">登 录</button>
44+
</form>
45+
<br/>
46+
<br/>
47+
<div class = "animated bounceInLeft" onclick="boke();">
48+
© 2017 All Rights Reserved. 邹海清|z77z的小码窝
49+
</div>
50+
</div>
51+
</div>
52+
<div class="part" style="z-index:-1;position:fixed;height:100%;width:100%;top:0;left:0"></div>
53+
</body>
54+
<script type="text/javascript">
55+
56+
//跳转到个人博客
57+
function boke(){
58+
location.href = "http://z77z.oschina.io/";
59+
}
60+
61+
function login() {
62+
var username = $("#username").val();
63+
var password = $("#password").val();
64+
var vcode = $("#vcode").val();
65+
var rememberMe =$('#rememberMe').is(':checked');
66+
$.ajax({
67+
type : "POST",
68+
data : {
69+
"username" : username,
70+
"password" : password,
71+
"vcode" : vcode,
72+
"rememberMe" : rememberMe
73+
},
74+
dataType : "json",
75+
url : "<%=request.getContextPath()%>/ajaxLogin",
76+
success : function(result) {
77+
78+
if (result.status != 200) {
79+
swal("哦豁",result.message,"error");
80+
} else {
81+
swal({title:"太帅了",text:"登录成功,进入系统!",type:"success"},
82+
function () {
83+
location.href = "/index";
84+
});
85+
}
86+
}
87+
});
88+
}
89+
</script>
90+
</html>

0 commit comments

Comments
 (0)