To use auth without a password, the password and remember_me_token fields should be optional.
Package version
4.3.1
Node.js and npm version
Node v14.7.0
Npm v6.14.7
Sample Code (to reproduce the issue)
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class UsersSchema extends BaseSchema {
protected tableName = 'users'
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.uuid('id').primary().defaultTo(this.db.rawQuery("uuid_generate_v4()").knexQuery)
table.string('email', 255).notNullable()
table.string('password', 180).notNullable() //FIXME: Should be optional
table.string('remember_me_token').nullable() // FIXME: Should be optional
table.timestamps(true)
})
}
public async down () {
this.schema.dropTable(this.tableName)
}
}
To use auth without a password, the
password
andremember_me_token
fields should be optional.Package version
4.3.1
Node.js and npm version
Node v14.7.0 Npm v6.14.7
Sample Code (to reproduce the issue)