Added a sub to user for it to be more easily mappable to matrix

This commit is contained in:
Tracker-Friendly 2024-05-04 19:01:51 +01:00
parent 402c310677
commit 9c57a49f0c
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ func main() {
return
}
user := gin.H{"name": username}
user := gin.H{"name": username, "sub": uniqueid}
c.JSON(200, gin.H{"sub": uniqueid, "user": user})
})