salix/@salix-services/login/server/boot/createmodel.js

10 lines
241 B
JavaScript
Raw Normal View History

2016-11-08 08:07:39 +00:00
module.exports = function(app) {
var User = app.models.User;
console.log(app.models.AccessToken);
User.create ({
email: 'admin@admin.com',
password: '1234'
}, function (err, user) {
console.log ('User created!');
});
};