litstack / 2fa

2 factor authentication for litstack.
https://litstack.io/docs/packages/2fa
1 stars 2 forks source link

2fa migrations #1

Open useahawk opened 3 years ago

useahawk commented 3 years ago

when I make php artisan migrate:fresh and then create new admin with php artisan lit:admin it throws an error, because there are no defaults for the 2fa fields.

my solution in the migrations file: $table->boolean('two_fa_enabled')->default(0); $table->string('two_fa_secret')->nullable();