1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Fix login page and remove facebook from login.

Move admin and test password to environment variable for seed.
This commit is contained in:
Mumshad Mannambeth 2017-07-11 13:35:04 -04:00
parent babc1c5e6c
commit d7f415b3f7
5 changed files with 12 additions and 16 deletions

View file

@ -11,6 +11,6 @@ module.exports = {
},
// Seed database on startup
seedDB: true
seedDB: process.env.SEED_DB || true
};

View file

@ -14,14 +14,14 @@ export default function seedDatabaseIfNeeded() {
User.create({
provider: 'local',
name: 'Test User',
email: 'test@example.com',
password: 'test'
email: 'test@playable.com',
password: process.env.PASSWORD_TEST || 'test'
}, {
provider: 'local',
role: 'admin',
name: 'Admin',
email: 'admin@example.com',
password: 'admin'
email: 'admin@playable.com',
password: process.env.PASSWORD_ADMIN || 'admin'
})
.then(() => console.log('finished populating users'))
.catch(err => console.log('error populating users', err));