mod_oidc_userinfo_vcard4: Fix phone number claim
authorKim Alvefur <zash@zash.se>
Sun, 23 Apr 2023 14:18:25 +0200
changeset 5365 cec1b0b0adef
parent 5364 f05de5ac219f
child 5366 c0493d3173c1
mod_oidc_userinfo_vcard4: Fix phone number claim Copy-paste mistake probably
mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua
--- a/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua	Sun Apr 23 13:37:58 2023 +0200
+++ b/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua	Sun Apr 23 14:18:25 2023 +0200
@@ -71,7 +71,7 @@
 	end
 
 	if vcard4 and event.claims:contains("phone") then
-		userinfo.phone = vcard4:find("email/text#")
+		userinfo.phone = vcard4:find("tel/text#")
 		if userinfo.phone then
 			userinfo.phone_number_verified = false;
 		end