Make login_controller consistent with signup_controller by using Client4.getOAuthRoute (#7033)

* Use Client4.getOAuthUrl instead of making the url by hand with getUrl

* Use the correct function name. thanks jwilander
This commit is contained in:
Maxime Buquet
2017-07-31 14:31:28 +02:00
committed by Joram Wilander
parent 6ec24867bc
commit cf32b59e64

View File

@@ -490,7 +490,7 @@ export default class LoginController extends React.Component {
<a
className='btn btn-custom-login gitlab'
key='gitlab'
href={Client4.getUrl() + '/oauth/gitlab/login' + this.props.location.search}
href={Client4.getOAuthRoute() + '/gitlab/login' + this.props.location.search}
>
<span>
<span className='icon'/>
@@ -510,7 +510,7 @@ export default class LoginController extends React.Component {
<a
className='btn btn-custom-login google'
key='google'
href={Client4.getUrl() + '/oauth/google/login' + this.props.location.search}
href={Client4.getOAuthRoute() + '/google/login' + this.props.location.search}
>
<span>
<span className='icon'/>
@@ -530,7 +530,7 @@ export default class LoginController extends React.Component {
<a
className='btn btn-custom-login office365'
key='office365'
href={Client4.getUrl() + '/oauth/office365/login' + this.props.location.search}
href={Client4.getOAuthRoute() + '/office365/login' + this.props.location.search}
>
<span>
<span className='icon'/>