mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
fix: lint
This commit is contained in:
@@ -546,7 +546,7 @@ func (v *baseVhost) BasicAuth() map[string]string {
|
||||
}
|
||||
|
||||
func (v *baseVhost) SetBasicAuth(auth map[string]string) error {
|
||||
if auth == nil || len(auth) == 0 {
|
||||
if len(auth) == 0 {
|
||||
// 清除基本认证配置
|
||||
v.vhost.RemoveDirective("AuthType")
|
||||
v.vhost.RemoveDirective("AuthName")
|
||||
|
||||
Reference in New Issue
Block a user