Change username to email in JWT

This commit is contained in:
Matthew Dillon 2015-04-10 11:15:32 -08:00
parent ea43effec8
commit 3f0b074619
3 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ module.exports = function(environment) {
}
ENV['simple-auth-token'] = {
serverTokenEndpoint: '/api/authenticate',
identificationField: 'username',
identificationField: 'email',
passwordField: 'password',
tokenPropertyName: 'token',
authorizationPrefix: 'Bearer ',
@ -61,7 +61,7 @@ module.exports = function(environment) {
}
ENV['simple-auth-token'] = {
serverTokenEndpoint: 'https://bactdb-test.herokuapp.com/api/authenticate',
identificationField: 'username',
identificationField: 'email',
passwordField: 'password',
tokenPropertyName: 'token',
authorizationPrefix: 'Bearer ',
@ -95,7 +95,7 @@ module.exports = function(environment) {
}
ENV['simple-auth-token'] = {
serverTokenEndpoint: 'https://bactdb.herokuapp.com/api/authenticate',
identificationField: 'username',
identificationField: 'email',
passwordField: 'password',
tokenPropertyName: 'token',
authorizationPrefix: 'Bearer ',