mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 06:56:38 +02:00
Merge branch 'main' into staging
This commit is contained in:
commit
ce5429a531
3 changed files with 5 additions and 4 deletions
|
@ -135,11 +135,11 @@
|
|||
"Returns true if email's domain is in the given whitelist or if given
|
||||
whitelist is an empty string."
|
||||
[whitelist email]
|
||||
(if (str/blank? whitelist)
|
||||
(if (str/empty-or-nil? whitelist)
|
||||
true
|
||||
(let [domains (str/split whitelist #",\s*")
|
||||
email-domain (second (str/split email #"@"))]
|
||||
(contains? (set domains) email-domain))))
|
||||
domain (second (str/split email #"@" 2))]
|
||||
(contains? (set domains) domain))))
|
||||
|
||||
(def ^:private sql:profile-existence
|
||||
"select exists (select * from profile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue