refactor: rename remote user to x tinyauth user

This commit is contained in:
Stavros
2025-03-04 16:00:28 +02:00
parent 7e0bc84b0f
commit 33904f7f86
3 changed files with 4 additions and 3 deletions

View File

@@ -235,7 +235,8 @@ func (api *API) SetupRoutes() {
return
}
c.Header("Remote-User", userContext.Username)
// Set the user header
c.Header("X-Tinyauth-User", userContext.Username)
// The user is allowed to access the app
c.JSON(200, gin.H{