From a3b3a822d547c6cb7e7eaa40b4d17732fe9f5cd8 Mon Sep 17 00:00:00 2001 From: Andres Eusse Date: Fri, 21 Oct 2016 21:07:20 -0500 Subject: [PATCH] Fixes https://github.com/jpadilla/ember-simple-auth-token/issues/170 --- addon/authenticators/token.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/authenticators/token.js b/addon/authenticators/token.js index 8e563ca..578412f 100644 --- a/addon/authenticators/token.js +++ b/addon/authenticators/token.js @@ -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;