mirror of
https://github.com/1f349/tulip.git
synced 2024-12-22 16:24:10 +00:00
Add userinfo.login
This commit is contained in:
parent
1e17631af9
commit
afd1fae971
@ -210,6 +210,7 @@ func NewHttpServer(conf Conf, db *database.DB, signingKey mjwt.Signer) *http.Ser
|
||||
}
|
||||
if claims["username"] {
|
||||
m["preferred_username"] = userData.Username
|
||||
m["login"] = userData.Username
|
||||
}
|
||||
if claims["profile"] {
|
||||
m["profile"] = conf.BaseUrl + "/user/" + userData.Username
|
||||
|
Loading…
Reference in New Issue
Block a user