Mercurial > prosody-modules
comparison mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua @ 5555:34b63d0144c3
mod_oidc_userinfo_vcard4: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Jun 2023 15:28:13 +0200 |
parents | 320593cf7d90 |
children | dfade0e38930 |
comparison
equal
deleted
inserted
replaced
5554:90449babaa48 | 5555:34b63d0144c3 |
---|---|
8 module:add_item("openid-claim", "phone"); | 8 module:add_item("openid-claim", "phone"); |
9 module:add_item("openid-claim", "profile"); | 9 module:add_item("openid-claim", "profile"); |
10 | 10 |
11 local mod_pep = module:depends "pep"; | 11 local mod_pep = module:depends "pep"; |
12 | 12 |
13 local gender_map = { M = "male"; F = "female"; O = "other"; N = "nnot applicable"; U = "unknown" } | 13 local gender_map = { M = "male"; F = "female"; O = "other"; N = "not applicable"; U = "unknown" } |
14 | 14 |
15 module:hook("token/userinfo", function(event) | 15 module:hook("token/userinfo", function(event) |
16 local pep_service = mod_pep.get_pep_service(event.username); | 16 local pep_service = mod_pep.get_pep_service(event.username); |
17 | 17 |
18 local vcard4 = select(3, pep_service:get_last_item("urn:xmpp:vcard4", true)); | 18 local vcard4 = select(3, pep_service:get_last_item("urn:xmpp:vcard4", true)); |