Browse Source

Make force logout the default

Tulir Asokan 4 năm trước cách đây
mục cha
commit
b4d7617967
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      provisioning.go

+ 1 - 1
provisioning.go

@@ -282,7 +282,7 @@ func (prov *ProvisioningAPI) Logout(w http.ResponseWriter, r *http.Request) {
 		return
 	}
 
-	force := strings.ToLower(r.URL.Query().Get("force")) == "true"
+	force := strings.ToLower(r.URL.Query().Get("force")) != "false"
 
 	if user.Conn == nil {
 		if !force {