mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-02 14:10:29 +03:00
home: improve getCurrentUser
This commit is contained in:
parent
925c5df801
commit
1c754788f9
2 changed files with 10 additions and 6 deletions
internal/home
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue