diff options
Diffstat (limited to 'webapp/components/login')
-rw-r--r-- | webapp/components/login/login_controller.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx index dd4a92f92..ab8b49392 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -69,13 +69,13 @@ export default class LoginController extends React.Component { this.setState({loginId}); } - let password = this.refs.password.value; + const password = this.refs.password.value; if (password !== this.state.password) { this.setState({password}); } + // don't trim the password since we support spaces in passwords loginId = loginId.trim(); - password = password.trim(); if (!loginId) { // it's slightly weird to be constructing the message ID, but it's a bit nicer than triply nested if statements @@ -444,7 +444,7 @@ export default class LoginController extends React.Component { <a className='btn btn-custom-login gitlab' key='gitlab' - href={Client.getOAuthRoute() + '/gitlab/login'} + href={Client.getOAuthRoute() + '/gitlab/login' + this.props.location.search} > <span className='icon'/> <span> @@ -529,4 +529,4 @@ export default class LoginController extends React.Component { </div> ); } -}
\ No newline at end of file +} |