Remove domain check

This commit is contained in:
Eric B. Budd 2020-03-07 17:50:37 -05:00
parent 6539bf6535
commit 3789bc8dc7
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ class Message
@errors << 'Unvalidatable; could not parse username' if username.nil?
@errors << 'Unvalidatable; username is empty' if username.empty?
user_regex = Regexp.new("(.*)@#{Config::HOSTNAME}$")
user_regex = Regexp.new("(.*)@.*$")
author_match = user_regex.match(author)
unless author_match && author_match[1] == username