mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-27 21:06:37 +08:00
自动检查管理员弱密码并提醒
This commit is contained in:
@@ -7,13 +7,14 @@ import "models/model_admin_module.proto";
|
||||
import "models/model_login.proto";
|
||||
|
||||
message Admin {
|
||||
int64 id = 1;
|
||||
string fullname = 2;
|
||||
string username = 3;
|
||||
bool isOn = 4;
|
||||
bool isSuper = 5;
|
||||
int64 createdAt = 6;
|
||||
repeated AdminModule Modules = 7;
|
||||
int64 id = 1; // ID
|
||||
string fullname = 2; // 全称
|
||||
string username = 3; // 用户名
|
||||
bool isOn = 4; // 是否启用
|
||||
bool isSuper = 5; // 是否为超级用户
|
||||
int64 createdAt = 6; // 创建时间
|
||||
repeated AdminModule Modules = 7; // 有权限的模块
|
||||
Login otpLogin = 8; // OTP认证
|
||||
bool canLogin = 9; // 是否可以登录
|
||||
bool hasWeakPassword = 10; // 是否设置了弱密码,只有超级管理员能看到此项
|
||||
}
|
||||
@@ -172,13 +172,16 @@ message UpdateAdminRequest {
|
||||
|
||||
// 计算管理员数量
|
||||
message CountAllEnabledAdminsRequest {
|
||||
|
||||
string keyword = 1; // 可选项,查询关键词
|
||||
bool hasWeakPassword = 2; // 可选项,筛选有弱密码的管理员,只有超级管理员才能查询
|
||||
}
|
||||
|
||||
// 列出单页的管理员
|
||||
message ListEnabledAdminsRequest {
|
||||
int64 offset = 1;
|
||||
int64 size = 2;
|
||||
string keyword = 3; // 可选项,查询关键词
|
||||
bool hasWeakPassword = 4; // 可选项,筛选有弱密码的管理员,只有超级管理员才能查询
|
||||
int64 offset = 1; // 读取位置,从0开始
|
||||
int64 size = 2; // 读取数量
|
||||
}
|
||||
|
||||
message ListEnabledAdminsResponse {
|
||||
|
||||
Reference in New Issue
Block a user