mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-20 16:20:27 +08:00
增加恢复模式
This commit is contained in:
@@ -21,6 +21,11 @@ func NewUserMustAuth(module string) *userMustAuth {
|
||||
}
|
||||
|
||||
func (this *userMustAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool) {
|
||||
if teaconst.IsRecoverMode {
|
||||
actionPtr.Object().RedirectURL("/recover")
|
||||
return false
|
||||
}
|
||||
|
||||
var action = actionPtr.Object()
|
||||
|
||||
// 安全相关
|
||||
|
||||
Reference in New Issue
Block a user