From ab24ab2f1aa5a93c35e68b46abbb3f03decbaeb0 Mon Sep 17 00:00:00 2001
From: Simon Zolin <s.zolin@adguard.com>
Date: Fri, 25 Oct 2019 11:01:29 +0300
Subject: [PATCH] - auth: fix crash on showing Dashboard in UI if
 authentication is disabled

---
 home/auth.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/home/auth.go b/home/auth.go
index 98f2ccae..0bcf0ed3 100644
--- a/home/auth.go
+++ b/home/auth.go
@@ -460,6 +460,7 @@ func (a *Auth) GetCurrentUser(r *http.Request) User {
 			u := config.auth.UserFind(user, pass)
 			return u
 		}
+		return User{}
 	}
 
 	a.lock.Lock()