mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
feat: 添加 TOTP 2FA 功能
This commit is contained in:
@@ -79,7 +79,7 @@ fn unauthorized_response(message: &str) -> Response {
|
||||
fn is_public_endpoint(path: &str) -> bool {
|
||||
matches!(
|
||||
path,
|
||||
"/" | "/auth/login" | "/health" | "/setup" | "/setup/init"
|
||||
"/" | "/auth/login" | "/auth/login/totp" | "/health" | "/setup" | "/setup/init"
|
||||
) || path.starts_with("/assets/")
|
||||
|| path.starts_with("/static/")
|
||||
|| path.ends_with(".js")
|
||||
|
||||
Reference in New Issue
Block a user