diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-06-13 15:29:24 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-06-13 15:29:24 -0400 |
commit | 5af526c259d9c6477d67eb8f8a1e7b86270c7294 (patch) | |
tree | 97cc595107026a1f19d6fd6e35627dda23979aa3 /webapp/components/login | |
parent | bb5ca5a8780f9259306d881e85760de8b87ddea8 (diff) | |
parent | 974238231b9cdbd39a825ec8e9299fbb0b51f6b8 (diff) | |
download | chat-5af526c259d9c6477d67eb8f8a1e7b86270c7294.tar.gz chat-5af526c259d9c6477d67eb8f8a1e7b86270c7294.tar.bz2 chat-5af526c259d9c6477d67eb8f8a1e7b86270c7294.zip |
Merge branch 'release-3.1'
Conflicts:
webapp/components/create_comment.jsx
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 +} |