From 5d61b3d8cdd0f57e9a2e87135a0a1162d0a6b6d7 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 24 Apr 2019 19:05:06 +0200 Subject: [PATCH] Logout should return true on success --- system/rest/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/rest/auth.go b/system/rest/auth.go index ea855f3c0..90ba7fae4 100644 --- a/system/rest/auth.go +++ b/system/rest/auth.go @@ -51,7 +51,7 @@ func (ctrl *Auth) Check(ctx context.Context, r *request.AuthCheck) (interface{}, } func (ctrl *Auth) Logout(ctx context.Context, r *request.AuthLogout) (interface{}, error) { - return nil, nil + return true, nil } func (ctrl *Auth) Settings(ctx context.Context, r *request.AuthSettings) (interface{}, error) { @@ -70,7 +70,7 @@ func (ctrl *Auth) ExchangeAuthToken(ctx context.Context, r *request.AuthExchange }, nil } -// Handlers() func ignores "std" crust controllers +// Handlers func ignores standard crust controllers // // Crush handlers are too abstract for our auth needs so we need (direct access to htt.ResponseWriter) func (ctrl *Auth) Handlers() *handlers.Auth {