Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
automatically settiing idField for auth. Closes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryski committed Mar 30, 2016
1 parent 2c8ef76 commit bece37c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generators/app/templates/config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"nedb": "../data/",<% } else if(database === 'sqlite'){ %>
"sqlite": "../data/<%= databaseName %>.sqlite",<% } %>
"public": "../public/"<% if (localAuth || authentication.length) { %>,
"auth": {
"auth": {<% if (database !== 'nedb' || database !== 'mongodb') { %>
"idField": "id",<% } %>
"token": {
"secret": "<%= secret %>"
}<% if (localAuth) { %>,
Expand Down
3 changes: 2 additions & 1 deletion generators/app/templates/config.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"nedb": "NEDB_BASE_PATH",<% } else if(database === 'sqlite'){ %>
"sqlite": "SQLITE_DB",<% } %>
"public": "../public/"<% if (localAuth || authentication.length) { %>,
"auth": {
"auth": {<% if (database !== 'nedb' || database !== 'mongodb') { %>
"idField": "id",<% } %>
"token": {
"secret": "FEATHERS_AUTH_SECRET"
}<% if (localAuth) { %>,
Expand Down

0 comments on commit bece37c

Please sign in to comment.