myartsev / ember-simple-auth-jwt

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

How to change identificationAttributeName? #9

Closed matthewvalimaki closed 6 years ago

matthewvalimaki commented 6 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 6 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'
});