Set the username in the server when using tokens.
This avoids the need to pass the username in the URL without requiring the client to parse tokens.
This commit is contained in:
@@ -86,6 +86,10 @@ func (c *webClient) Username() string {
|
||||
return c.username
|
||||
}
|
||||
|
||||
func (c *webClient) SetUsername(username string) {
|
||||
c.username = username
|
||||
}
|
||||
|
||||
func (c *webClient) Permissions() []string {
|
||||
return c.permissions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user