Require at least a dot in a JID

Stephen Paul Weber created

Change summary

sgx_jmp.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

sgx_jmp.rb 🔗

@@ -714,7 +714,7 @@ command :execute?, node: "web-register" do |iq|
 		sentry_hub.current_scope.set_user(jid: jid, tel: tel)
 		if iq.from.stripped != CONFIG[:web_register][:from]
 			BLATHER << iq.as_error("forbidden", :auth)
-		elsif jid == "" || tel !~ /\A\+\d+\Z/
+		elsif jid !~ /\./ || tel !~ /\A\+\d+\Z/
 			reply_with_note(iq, "Invalid JID or telephone number.", type: :error)
 		else
 			IQ_MANAGER.write(Blather::Stanza::Iq::Command.new.tap { |cmd|