Do not overwrite options on custom oauth

pull/888/head
Marcelo Schmidt 10 years ago
parent 87b3aaa57e
commit 40181db27c
  1. 7
      packages/rocketchat-custom-oauth/custom_oauth_client.coffee

@ -25,11 +25,10 @@ class CustomOAuth
options.authorizePath = '/oauth/authorize'
@serverURL = options.serverURL
@authorizePath = options.authorizePath
if not /^https?:\/\/.+/.test options.authorizePath
@authorizePath = @serverURL + options.authorizePath
else
@authorizePath = options.authorizePath
if not /^https?:\/\/.+/.test @authorizePath
@authorizePath = @serverURL + @authorizePath
configureLogin: ->
self = @

Loading…
Cancel
Save