check for empty username/email for identifier

This commit is contained in:
Kyle Drake 2024-02-16 14:11:46 -06:00
parent 4ffeddaf5a
commit e551aeb342

View file

@ -317,6 +317,7 @@ class Site < Sequel::Model
end
def get_with_identifier(username_or_email)
return nil if username_or_email.nil? || username_or_email.empty?
if username_or_email =~ /@/
site = get_with_email username_or_email
else