Skip to content

Commit 1502653

Browse files
Merge pull request #922 from datacite/trailing-whitespace-login
Trim identification string before authentication
2 parents a08a2a9 + 7320e5e commit 1502653

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/sign-in.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default class SignInController extends Controller {
2929
authenticate() {
3030
let self = this;
3131
let { identification, password } = this;
32+
identification = identification.trim();
3233
this.session
3334
.authenticate('authenticator:oauth2', identification, password)
3435
.then(() => {

0 commit comments

Comments
 (0)