myartsev / ember-simple-auth-jwt

Ember Simple Auth extension for JWT
MIT License
9 stars 3 forks source link

How to change identificationAttributeName? #9

Closed matthewvalimaki closed 7 years ago

matthewvalimaki commented 7 years ago

I want to change username to email but do not know how to do it. Doing the following has no effect:

export default JWTAuthenticator.extend({
    identificationAttributeName: 'email',
});
myartsev commented 7 years ago

Thank you for reporting, it's a bug. Should work now, you were doing it correctly.

export default JWTAuthenticator.extend({
    identificationAttributeName: 'email',
    passwordAttributeName: 'pass'
});