让用户ID抓包不泄露更安全

This commit is contained in:
limqhz
2022-05-09 23:09:37 +08:00
parent fe275a4df6
commit 1826e4bb9a
1378 changed files with 1486 additions and 91442 deletions

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>用户中心-Quinn</title>
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/hover/component.css}">
<style>
#table-title tr th{
border: none;
@@ -15,65 +15,56 @@
<body style="background: #f2f2f2;">
<div th:replace="~{common/header::header(activeUrl='user')}"></div>
<main role="main" class="container">
<div class="row">
<div th:replace="~{user/index::userShowPanel}"></div>
<div class="col-md-9 blog-main">
<div class="blog-main">
<div class="my-3 p-3 bg-white rounded shadow-sm">
<form class="needs-validation" novalidate="" th:action="@{'/userinfo/update/'+${session.loginUser.getUid()}}" method="post">
<form class="needs-validation small" novalidate="" th:action="@{'/userinfo/update/'+${session.loginUser.getUid()}}" method="post">
<div class="row">
<div class="col-md-6 mb-3">
<label for="nickname">用户昵称</label>
<input type="text" th:value="${userInfo.getNickname()}" name="nickname" class="form-control" id="nickname" placeholder="limqsh" required="">
<label for="username">用户</label>
<input type="text" th:value="${session.loginUser.getUsername()}" name="username" class="form-control" id="username" placeholder="xxxx" required="">
</div>
<div class="col-md-6 mb-3">
<label for="realname">真实姓名</label>
<input type="text" th:value="${userInfo.getRealname()}" name="realname" class="form-control" id="realname" placeholder="xxxx" required="">
<input type="text" th:value="${userInfo.getRealname()}" name="realname" class="form-control" id="realname" placeholder="xxx">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="phone">手机</label>
<input type="text" th:value="${userInfo.getPhone()}" name="phone" class="form-control" id="phone" placeholder="xxxxxxxxxxx">
</div>
<div class="col-md-6 mb-3">
<label for="age">年龄</label>
<input type="text" th:value="${userInfo.getRealname()}" name="age" class="form-control" id="age" placeholder="18" required="">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="qq">QQ</label>
<input type="text" th:value="${userInfo.getQq()}" name="qq" class="form-control" id="qq" placeholder="limqsh" required="">
<input type="text" th:value="${userInfo.getQq()}" name="qq" class="form-control" id="qq" placeholder="xxx" required="">
</div>
<div class="col-md-6 mb-3">
<label for="wechat">WeChat</label>
<input type="text" th:value="${userInfo.getWechat()}" name="wechat" class="form-control" id="wechat" placeholder="xxxx" required="">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="email">邮箱</label>
<input type="email" th:value="${userInfo.getEmail()}" name="email" class="form-control" id="email" placeholder="quinn@qq.com">
</div>
<div class="col-md-6 mb-3">
<label for="phone">手机</label>
<input type="text" th:value="${userInfo.getPhone()}" name="phone" class="form-control" id="phone" placeholder="123 3333 2222">
<input type="email" th:value="${userInfo.getEmail()}" name="email" class="form-control" id="email" placeholder="example@quinn.com">
</div>
</div>
<div class="mb-3">
<label for="work">工作</label>
<input type="text" th:value="${userInfo.getWork()}" name="work" class="form-control" id="work" placeholder="Java高级程序员">
<input type="text" th:value="${userInfo.getWork()}" name="work" class="form-control" id="work" placeholder="架构师">
</div>
<div class="mb-3">
<label for="address">地址</label>
<input type="text" th:value="${userInfo.getAddress()}" name="address" class="form-control" id="address" placeholder="中国 重庆">
<input type="text" th:value="${userInfo.getAddress()}" name="address" class="form-control" id="address" placeholder="中国 杭州">
</div>
<div class="mb-3">
<label for="hobby">爱好(使用英文逗号隔开)</label>
<input type="text" th:value="${userInfo.getHobby()}" name="hobby" class="form-control" id="hobby" placeholder="代码,唱歌,游戏">
<label for="hobby">爱好</label>
<input type="text" th:value="${userInfo.getHobby()}" name="hobby" class="form-control" id="hobby" placeholder="">
</div>
<div class="mb-3">
@@ -81,18 +72,15 @@
<textarea th:text="${userInfo.getIntro()}" type="text" name="intro" class="form-control"></textarea>
</div>
<hr class="mb-4">
<hr class="mb-1">
<button class="btn btn-primary btn-lg btn-block" type="submit" > 更新资料 </button>
<button class="btn btn-primary btn-block" type="submit" > 更新资料 </button>
</form>
</div>
</div>
</div>
</main>
@@ -105,23 +93,5 @@
<script th:src="@{/js/jquery-ui.min.js}"></script>
<script th:src="@{/live/js/addlive2d.js}"></script>
<!-- layer 赞赏码 -->
<script th:src="@{/layer/layer.js}"></script>
<script th:src="@{/js/axios.js}"></script>
<script>
// 后台读取
function donate(){
axios.get('/user/donate/1').then(response => {
console.log();
layer.photos({
photos: response.data,
anim: 5 //0-6的选择指定弹出图片动画类型默认随机请注意3.0之前的版本用shift参数
});
})
}
</script>
</body>
</html>