strapi / foodadvisor

🥘 THE Strapi demo application
MIT License
1.09k stars 446 forks source link

Add default admin token #50

Closed pierreburgy closed 4 years ago

pierreburgy commented 4 years ago

The create-first-administrator.js script inserts an encrypted password, so the auth secret has to be hardcoded in the code.

The alternative was to send the env variables from the website API, but since it is not sensitive, I think we can keep it here.

Please let me know what you think.

lauriejim commented 4 years ago

According to this comment from Alex - https://github.com/strapi/foodadvisor/pull/52#pullrequestreview-464163632 I did the same and finally, I generated a .env in the seed process, waiting for Alexr review, but we will probably do that thing in my PR Pierre. I think we can close this PR.