管理端全部功能跑通
This commit is contained in:
@@ -16,8 +16,7 @@ func (this *RollbackMfaPopupAction) Init() {
|
||||
func (this *RollbackMfaPopupAction) RunGet(params struct {
|
||||
LogId int64
|
||||
}) {
|
||||
this.Data["logId"] = params.LogId
|
||||
this.Show()
|
||||
this.RedirectURL("/httpdns/apps")
|
||||
}
|
||||
|
||||
func (this *RollbackMfaPopupAction) RunPost(params struct {
|
||||
@@ -29,8 +28,5 @@ func (this *RollbackMfaPopupAction) RunPost(params struct {
|
||||
Must *actions.Must
|
||||
CSRF *actionutils.CSRF
|
||||
}) {
|
||||
params.Must.Field("reason", params.Reason).Require("please input rollback reason")
|
||||
params.Must.Field("otpCode1", params.OtpCode1).Require("please input first otp code")
|
||||
params.Must.Field("otpCode2", params.OtpCode2).Require("please input second otp code")
|
||||
this.Success()
|
||||
this.Fail("feature removed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user