add office 365 mail console

This commit is contained in:
2026-04-02 21:16:23 +08:00
commit 91609d15aa
14 changed files with 2287 additions and 0 deletions

33
public/login.html Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>访问验证</title>
<link rel="stylesheet" href="/login.css" />
</head>
<body>
<main class="auth-shell">
<section class="auth-card">
<p class="eyebrow">Protected Access</p>
<h1>输入访问密码</h1>
<p class="auth-copy">验证通过后才能进入 Office 365 邮件控制台。</p>
<div id="auth-error" class="auth-error hidden">访问密码错误,请重试。</div>
<form method="post" action="/auth/login" class="auth-form">
<label for="password">访问密码</label>
<input id="password" name="password" type="password" autocomplete="current-password" required autofocus />
<button type="submit">进入控制台</button>
</form>
</section>
</main>
<script>
const params = new URLSearchParams(window.location.search);
if (params.get('error') === '1') {
document.getElementById('auth-error').classList.remove('hidden');
}
</script>
</body>
</html>