summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Kalderimis <akalderimis@gitlab.com>2019-08-30 04:43:16 +0000
committerThong Kuah <tkuah@gitlab.com>2019-08-30 04:43:16 +0000
commite3a91089b75cdadaa66288d0ff68f137893a3a45 (patch)
tree5b90b14cbb888b193c70cf1f7402937275470506 /app
parent1a513aaf53d4f7b7c08aded24f1741e5906fba39 (diff)
downloadgitlab-ce-e3a91089b75cdadaa66288d0ff68f137893a3a45.tar.gz
Allow be_url to specify the type
This allows the be_url matcher to be more specific. By default, it only matches HTTP and HTTPS URIs.
Diffstat (limited to 'app')
-rw-r--r--app/services/chat_names/authorize_user_service.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/services/chat_names/authorize_user_service.rb b/app/services/chat_names/authorize_user_service.rb
index 78b53cb3637..f7780488923 100644
--- a/app/services/chat_names/authorize_user_service.rb
+++ b/app/services/chat_names/authorize_user_service.rb
@@ -24,16 +24,16 @@ module ChatNames
end
def chat_name_token
- Gitlab::ChatNameToken.new
+ @chat_name_token ||= Gitlab::ChatNameToken.new
end
def chat_name_params
{
- service_id: @service.id,
- team_id: @params[:team_id],
+ service_id: @service.id,
+ team_id: @params[:team_id],
team_domain: @params[:team_domain],
- chat_id: @params[:user_id],
- chat_name: @params[:user_name]
+ chat_id: @params[:user_id],
+ chat_name: @params[:user_name]
}
end
end