Skip to content

Commit 1c8ca25

Browse files
committed
Changed behaviour of storing provisioned uri instead of secret key
1 parent f54b155 commit 1c8ca25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/migrations/2017_01_20_160000_add_two_factor_authentication_required_fields.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class AddTwoFactorAuthenticationRequiredFields extends Migration
1414
public function up()
1515
{
1616
Schema::table(config('2fa-config.table'), function (Blueprint $table) {
17-
$table->smallInteger('is_two_factor_enabled')->default(0)->before('created_at');
18-
$table->string('two_factor_secret_key')->nullable()->default(NULL)->after('is_two_factor_enabled');
17+
$table->smallInteger('is_two_factor_enabled')->nullable()->default(0)->before('created_at');
18+
$table->string('two_factor_provisioned_uri')->nullable()->after('is_two_factor_enabled');
1919
});
2020
}
2121

@@ -28,7 +28,7 @@ public function down()
2828
{
2929
Schema::table(config('2fa-config.table'), function (Blueprint $table) {
3030
$table->dropColumn('is_two_factor_enabled');
31-
$table->dropColumn('two_factor_secret_key');
31+
$table->dropColumn('two_factor_provisioned_uri');
3232
});
3333
}
3434
}

0 commit comments

Comments
 (0)