mirror of https://github.com/Calamitous/iris.git
Remove domain check
This commit is contained in:
parent
6539bf6535
commit
3789bc8dc7
2
iris.rb
2
iris.rb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue