mirror of
https://github.com/1f349/lavender.git
synced 2024-11-09 22:32:48 +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"] {
|
if claims["username"] {
|
||||||
m["preferred_username"] = info.UserInfo["preferred_username"]
|
m["preferred_username"] = info.UserInfo["preferred_username"]
|
||||||
|
m["login"] = info.UserInfo["login"]
|
||||||
}
|
}
|
||||||
if claims["profile"] {
|
if claims["profile"] {
|
||||||
m["profile"] = info.UserInfo["profile"]
|
m["profile"] = info.UserInfo["profile"]
|
||||||
|
Loading…
Reference in New Issue
Block a user