updatePasswd.html 1.41 KB
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
    <title>修改密码</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link rel="shortcut icon" type="image/x-icon" href="/power/img/favicon.ico">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/power/css/addUser.css"/>
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改密码</small>
                    <small><a style="float:right;margin-top: 15px;" th:href="@{/user/page}">返回</a></small>
                </h1>
            </div>
        </div>
    </div>
    <form th:action="@{/user/updatePassword}" method="post">
        <input type="hidden" th:value="${user.userId}" name="userId"> <br><br>
        <div>原密码:<input type="password" name="oldPassword"></div>
        <div>新密码:<input type="password" name="password"></div>
        <div th:if="${not #strings.isEmpty(pdMsg)}"><p style="color: red;margin-left: 100px;" th:text="${pdMsg}" ></p></div>
        <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" class="button" value="确认修改"></div>
    </form>
</div>