优化账户验证
This commit is contained in:
parent
d10b5284c4
commit
3f1f76f978
@ -163,21 +163,36 @@ async function checkqv(curemail) {
|
||||
console.log("NEU校园网认证已完成");
|
||||
} else {
|
||||
// 文件存在但内容不是true
|
||||
alert("您未完成NEU校园网认证,请前往认证!");
|
||||
window.location.href = "/qualification_verify";
|
||||
showCustomModal();
|
||||
}
|
||||
} else {
|
||||
// 文件不存在
|
||||
alert("您未完成NEU校园网认证,请前往认证!");
|
||||
window.location.href = "/qualification_verify";
|
||||
showCustomModal();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('检查NEU校园网认证状态时出错:', error);
|
||||
alert("您未完成NEU校园网认证,请前往认证!");
|
||||
window.location.href = "/qualification_verify";
|
||||
showCustomModal();
|
||||
}
|
||||
}
|
||||
|
||||
function showCustomModal() {
|
||||
const modal = document.getElementById('customModal');
|
||||
const overlay = document.getElementById('modalOverlay');
|
||||
modal.style.display = 'block';
|
||||
overlay.style.display = 'block';
|
||||
|
||||
// 绑定确认按钮的点击事件
|
||||
document.getElementById('confirmButton').addEventListener('click', () => {
|
||||
window.location.href = "/qualification_verify";
|
||||
});
|
||||
|
||||
// 绑定退出登录按钮的点击事件
|
||||
document.getElementById('logoutButton').addEventListener('click', () => {
|
||||
logout(); // 调用已定义的logout函数
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function f1() {
|
||||
try {
|
||||
|
8
js/submission.min.js
vendored
8
js/submission.min.js
vendored
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
<meta name="robots" content="index, follow">
|
||||
<title>更新日志 | NEU小站</title>
|
||||
<meta name="keywords" content="">
|
||||
<meta name="description" content="2024.08 08.23 更新资源合集卡片。 08.10 资源下载采用临时签名URL,防止爬虫。 08.08 优化安全下载功能。 08.04 优化投稿Markdown编辑器样式。 2024.07 07.28 搜索页新增热门关键词。 07.26 修复部分情况下加载草稿不展示最新草稿内容的Bug。 07.25 修复了内容详情页面不展示最新头像的Bug。 配置并优化资源存储子域名。 07.03 升级资源内容系统,接入投稿用户系统。 升级投稿系统为投稿者中心,引入投稿用户系统。 07.02 新增资源投稿系统。 投稿系统优化CORS安全机制以保护文件。 2024.06 06.30 优化了资源密码验证机制。 06.29 增加资源密码保护功能。 06.27 新增 $LaTeX$ 数学公式支持。 新增投稿者头像。 06.24 优化首页“新生指南”样式。 为网站配置资源防盗链。 优化评论区表情稳定性。 06.23 新增“新生指南”板块。 06.22 优化主页背景图片稳定性。 06.20 更新主页LOGO。 更新404页面样式。 06.19 更新网站主页样式(电脑端和手机端)。 更新主页按钮样式。 06.18 更新网站图标。
|
||||
<meta name="description" content="2024.08 08.31 更新账户验证功能,防止非NEU师生注册本网站。 08.23 更新资源合集卡片。 08.10 资源下载采用临时签名URL,防止爬虫。 08.08 优化安全下载功能。 08.04 优化投稿Markdown编辑器样式。 2024.07 07.28 搜索页新增热门关键词。 07.26 修复部分情况下加载草稿不展示最新草稿内容的Bug。 07.25 修复了内容详情页面不展示最新头像的Bug。 配置并优化资源存储子域名。 07.03 升级资源内容系统,接入投稿用户系统。 升级投稿系统为投稿者中心,引入投稿用户系统。 07.02 新增资源投稿系统。 投稿系统优化CORS安全机制以保护文件。 2024.06 06.30 优化了资源密码验证机制。 06.29 增加资源密码保护功能。 06.27 新增 $LaTeX$ 数学公式支持。 新增投稿者头像。 06.24 优化首页“新生指南”样式。 为网站配置资源防盗链。 优化评论区表情稳定性。 06.23 新增“新生指南”板块。 06.22 优化主页背景图片稳定性。 06.20 更新主页LOGO。 更新404页面样式。 06.19 更新网站主页样式(电脑端和手机端)。 更新主页按钮样式。 06.18 更新网站图标。
|
||||
评论区启用贴吧表情。
|
||||
优化投稿作者样式。
|
||||
优化网站夜间模式样式。
|
||||
@ -241,6 +241,10 @@
|
||||
<div class="post-content">
|
||||
|
||||
<h2 id="202408">2024.08<a hidden class="anchor" aria-hidden="true" href="#202408">#</a></h2>
|
||||
<h3 id="0831">08.31<a hidden class="anchor" aria-hidden="true" href="#0831">#</a></h3>
|
||||
<ul>
|
||||
<li>更新账户验证功能,防止非NEU师生注册本网站。</li>
|
||||
</ul>
|
||||
<h3 id="0823">08.23<a hidden class="anchor" aria-hidden="true" href="#0823">#</a></h3>
|
||||
<ul>
|
||||
<li>更新资源合集卡片。</li>
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user