Change username to email in JWT
This commit is contained in:
parent
ea43effec8
commit
3f0b074619
3 changed files with 7 additions and 7 deletions
|
@ -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 ',
|
||||
|
|
Reference in a new issue