132 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			132 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="zh-CN">
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <title>重置密码</title>
 | |
|     <style>
 | |
|         body {
 | |
|             font-family: 'Helvetica Neue', Arial, sans-serif;
 | |
|             background-color: #f0f2f5;
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|             display: flex;
 | |
|             justify-content: center;
 | |
|             align-items: center;
 | |
|             min-height: 100vh;
 | |
|         }
 | |
| 
 | |
|         .container {
 | |
|             background-color: #ffffff;
 | |
|             border-radius: 12px;
 | |
|             box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
 | |
|             padding: 40px;
 | |
|             width: 100%;
 | |
|             max-width: 480px;
 | |
|             text-align: center;
 | |
|             transition: transform 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .container:hover {
 | |
|             transform: translateY(-5px);
 | |
|         }
 | |
| 
 | |
|         h1 {
 | |
|             color: #333;
 | |
|             font-size: 28px;
 | |
|             margin-bottom: 30px;
 | |
|             font-weight: 600;
 | |
|         }
 | |
| 
 | |
|         .form-field {
 | |
|             margin-bottom: 25px;
 | |
|             text-align: left;
 | |
|         }
 | |
| 
 | |
|         label {
 | |
|             display: block;
 | |
|             margin-bottom: 8px;
 | |
|             color: #333;
 | |
|             font-weight: 500;
 | |
|             font-size: 14px;
 | |
|         }
 | |
| 
 | |
|         input[type="text"], input[type="email"], input[type="password"] {
 | |
|             width: 100%;
 | |
|             padding: 12px;
 | |
|             border: 2px solid #ddd;
 | |
|             border-radius: 6px;
 | |
|             font-size: 16px;
 | |
|             transition: border-color 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
 | |
|             outline: none;
 | |
|             border-color: #1890ff;
 | |
|         }
 | |
| 
 | |
|         .error, .success {
 | |
|             margin-bottom: 15px;
 | |
|         }
 | |
| 
 | |
|         .error {
 | |
|             color: red;
 | |
|         }
 | |
| 
 | |
|         .success {
 | |
|             color: green;
 | |
|         }
 | |
| 
 | |
|         button[type="submit"], button[type="button"] {
 | |
|             background-color: #1890ff;
 | |
|             color: white;
 | |
|             border: none;
 | |
|             padding: 14px 20px;
 | |
|             border-radius: 6px;
 | |
|             font-size: 16px;
 | |
|             cursor: pointer;
 | |
|             width: 100%;
 | |
|             transition: background-color 0.3s ease, transform 0.3s ease;
 | |
|             margin-top: 25px;
 | |
|             font-weight: 500;
 | |
|         }
 | |
| 
 | |
|         button[type="submit"]:hover, button[type="button"]:hover {
 | |
|             background-color: #40a9ff;
 | |
|             transform: translateY(-2px);
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
|     <div class="container">
 | |
|         <h1>重置密码</h1>
 | |
|         {% if error %}
 | |
|             <div class="error">{{ error }}</div>
 | |
|         {% endif %}
 | |
|         {% if success %}
 | |
|             <div class="success">{{ success }}</div>
 | |
|         {% endif %}
 | |
|         <form action="{{ url_for('reset_password') }}" method="post">
 | |
|             <div class="form-field">
 | |
|                 <label for="student_id">学号:</label>
 | |
|                 <input type="text" id="student_id" name="student_id" required>
 | |
|             </div>
 | |
|             <div class="form-field">
 | |
|                 <label for="email">邮箱:</label>
 | |
|                 <input type="email" id="email" name="email" required>
 | |
|             </div>
 | |
|             <div class="form-field">
 | |
|                 <label for="code">验证码:</label>
 | |
|                 <input type="text" id="code" name="code">
 | |
|             </div>
 | |
|             <div class="form-field">
 | |
|                 <label for="new_password">新密码:</label>
 | |
|                 <input type="password" id="new_password" name="new_password">
 | |
|             </div>
 | |
|             <button type="submit" name="reset_password">验证并修改密码</button>
 | |
|             <button type="submit" name="send_code">发送验证码</button>
 | |
|         </form>
 | |
|     </div>
 | |
| </body>
 | |
| </html>
 | 
