All about user login

Not runnable at the moment
This commit is contained in:
Tomas Bures 2017-07-08 15:48:34 +02:00
parent fbb8f5799e
commit d79bbad575
49 changed files with 1554 additions and 686 deletions

View file

@ -1,6 +1,8 @@
exports.up = function(knex, Promise) {
return knex.schema.table('users', table => {
table.string('name').notNullable().default('');
// name and password can be null in case of LDAP login
table.string('name');
table.string('password').alter();
})
.then(() => knex('users').where('id', 1).update({
name: 'Administrator'