mirror of
https://github.com/1f349/tulip.git
synced 2024-12-23 00:34:07 +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"] {
|
if claims["username"] {
|
||||||
m["preferred_username"] = userData.Username
|
m["preferred_username"] = userData.Username
|
||||||
|
m["login"] = userData.Username
|
||||||
}
|
}
|
||||||
if claims["profile"] {
|
if claims["profile"] {
|
||||||
m["profile"] = conf.BaseUrl + "/user/" + userData.Username
|
m["profile"] = conf.BaseUrl + "/user/" + userData.Username
|
||||||
|
Loading…
Reference in New Issue
Block a user