mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
Add userinfo.login
This commit is contained in:
parent
a86ae8b4d5
commit
bc2c837278
@ -220,6 +220,7 @@ func NewHttpServer(conf Conf, db *database.DB, signingKey mjwt.Signer) *http.Ser
|
||||
}
|
||||
if claims["username"] {
|
||||
m["preferred_username"] = info.UserInfo["preferred_username"]
|
||||
m["login"] = info.UserInfo["login"]
|
||||
}
|
||||
if claims["profile"] {
|
||||
m["profile"] = info.UserInfo["profile"]
|
||||
|
Loading…
Reference in New Issue
Block a user