myartsev/ember-simple-auth-jwt

How to change identificationAttributeName?

Closed this issue · 1 comments

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',
});

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

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