~singpolyma/sgx-jmp

df6b3ed77a934baa36c32dc74f383a088e36b0d4 — Stephen Paul Weber 1 year, 5 days ago 51a219e
Require at least a dot in a JID
1 files changed, 1 insertions(+), 1 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +1 -1
@@ 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|