fix: 移除管理员敏感操作的密码二次验证,修复登录流程

- 移除封禁用户、修改存储权限等操作的密码验证要求
- 修复普通用户登录后的文件列表加载逻辑

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 19:12:22 +08:00
parent 67f13b1053
commit 4bc147e53c
2 changed files with 7 additions and 20 deletions

View File

@@ -679,16 +679,14 @@ handleDragLeave(e) {
else {
// 如果用户可以使用本地存储,直接进入文件页面
if (this.storagePermission === 'local_only' || this.storagePermission === 'user_choice') {
if (!this.user.is_admin) {
this.currentView = 'files';
this.loadFiles('/'); }
this.currentView = 'files';
this.loadFiles('/');
}
// 如果仅OSS模式需要检查是否配置了OSS包括系统级统一配置
else if (this.storagePermission === 'oss_only') {
if (this.user?.oss_config_source !== 'none') {
if (!this.user.is_admin) {
this.currentView = 'files';
this.loadFiles('/'); }
this.currentView = 'files';
this.loadFiles('/');
} else {
this.currentView = 'settings';
this.showToast('info', '欢迎', '请先配置您的OSS服务');
@@ -696,9 +694,8 @@ handleDragLeave(e) {
}
} else {
// 默认行为:跳转到文件页面
if (!this.user.is_admin) {
this.currentView = 'files';
this.loadFiles('/'); }
this.currentView = 'files';
this.loadFiles('/');
}
}
}