Add userinfo.login

This commit is contained in:
Melon 2024-02-15 00:01:19 +00:00
parent 1e17631af9
commit afd1fae971
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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