diff options
author | Alex Kalderimis <akalderimis@gitlab.com> | 2019-08-30 07:43:16 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-08-30 07:43:16 +0300 |
commit | e3a91089b75cdadaa66288d0ff68f137893a3a45 (patch) | |
tree | 5b90b14cbb888b193c70cf1f7402937275470506 /app/services/chat_names | |
parent | 1a513aaf53d4f7b7c08aded24f1741e5906fba39 (diff) |
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/services/chat_names')
-rw-r--r-- | app/services/chat_names/authorize_user_service.rb | 10 |
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 |