home: improve getCurrentUser

This commit is contained in:
Ainar Garipov 2020-12-22 21:09:53 +03:00
parent 925c5df801
commit 1c754788f9
2 changed files with 10 additions and 6 deletions
internal/home

View file

@ -89,7 +89,7 @@ type profileJSON struct {
func handleGetProfile(w http.ResponseWriter, r *http.Request) {
pj := profileJSON{}
u := Context.auth.GetCurrentUser(r)
u := Context.auth.getCurrentUser(r)
pj.Name = u.Name
data, err := json.Marshal(pj)