Skip to content

Commit

Permalink
Merge pull request fenichelar#173 from Eusse/master
Browse files Browse the repository at this point in the history
Fixed issue with custom identification and password fields
  • Loading branch information
jpadilla authored Jan 22, 2018
2 parents 28092f9 + a3b3a82 commit 905ab12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/authenticators/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export default Base.extend({
*/
getAuthenticateData(credentials) {
const authentication = {
[this.passwordField]: credentials.password,
[this.identificationField]: credentials.identification
[this.passwordField]: credentials[this.passwordField],
[this.identificationField]: credentials[this.identificationField]
};

return authentication;
Expand Down

0 comments on commit 905ab12

Please sign in to comment.