homeContext refactoring

This commit is contained in:
Andrey Meshkov
2020-09-08 15:16:36 +03:00
parent 06594bde8f
commit cc1060d428
10 changed files with 255 additions and 241 deletions

View File

@@ -489,7 +489,7 @@ func (a *Auth) GetCurrentUser(r *http.Request) User {
// there's no Cookie, check Basic authentication
user, pass, ok := r.BasicAuth()
if ok {
u := Context.auth.UserFind(user, pass)
u := a.UserFind(user, pass)
return u
}
return User{}