Skip to content

Commit

Permalink
Merge pull request mattermost#1892 from mattermost/sso-email-fix
Browse files Browse the repository at this point in the history
Encode url query properly for SSO switching
  • Loading branch information
coreyhulen committed Jan 14, 2016
2 parents d36af55 + f04097b commit f7abbe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/react/components/user_settings/user_settings_security.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class SecurityTab extends React.Component {
<div>
<a
className='btn btn-primary'
href={'/' + teamName + '/claim?email=' + user.email}
href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email)}
>
{'Switch to using email and password'}
</a>
Expand All @@ -221,7 +221,7 @@ export default class SecurityTab extends React.Component {
<div>
<a
className='btn btn-primary'
href={'/' + teamName + '/claim?email=' + user.email + '&new_type=' + Constants.GITLAB_SERVICE}
href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email) + '&new_type=' + Constants.GITLAB_SERVICE}
>
{'Switch to using GitLab SSO'}
</a>
Expand All @@ -236,7 +236,7 @@ export default class SecurityTab extends React.Component {
<div>
<a
className='btn btn-primary'
href={'/' + teamName + '/claim?email=' + user.email + '&new_type=' + Constants.GOOGLE_SERVICE}
href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email) + '&new_type=' + Constants.GOOGLE_SERVICE}
>
{'Switch to using Google SSO'}
</a>
Expand Down

0 comments on commit f7abbe7

Please sign in to comment.