notes/cisco_ft_securex_registration.org

This commit is contained in:
Yann Esposito (Yogsototh) 2021-12-07 15:25:27 +01:00
parent 034c853cd2
commit 9ab48765fb
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -41,11 +41,9 @@ The algorithm should look a bit like:
;; only when this is an unknown user ;; only when this is an unknown user
(let [user-email ,,, (let [user-email ,,,
domain (string/replace user-email #".*@" "") domain (string/replace user-email #".*@" "")
users (matching-admins domain) ;; returns a potentially big list of users users (matching-admins domain) ;; returns a potentially big list of admin users
orgs (group-by :org-id users) indexed-orgs (group-by :org-id users)]
] (vals indexed-orgs))
)
#+end_src #+end_src
** Support Org request to admins ** Support Org request to admins