From 193cc5358fc756fc695b611ce6191c4853aa0e5b Mon Sep 17 00:00:00 2001 From: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com> Date: Mon, 24 Nov 2025 13:59:22 -0600 Subject: [PATCH] Add google_2fa_ts column to users table Add a timestamp to the database users table to prevent replay and code reuse attacks. Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com> --- ...00000_add_google_2fa_ts_to_users_table.php | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 database/migrations/2025_11_23_000000_add_google_2fa_ts_to_users_table.php diff --git a/database/migrations/2025_11_23_000000_add_google_2fa_ts_to_users_table.php b/database/migrations/2025_11_23_000000_add_google_2fa_ts_to_users_table.php new file mode 100644 index 0000000000..34cf40f358 --- /dev/null +++ b/database/migrations/2025_11_23_000000_add_google_2fa_ts_to_users_table.php @@ -0,0 +1,83 @@ +integer('google_2fa_ts')->nullable()->after('google_2fa_secret'); + + + }); + + + } + + + + + + /** + + + * Reverse the migrations. + + + */ + + + public function down(): void + + + { + + + Schema::table('users', function (Blueprint $table) { + + + $table->dropColumn('google_2fa_ts'); + + + }); + + + } + + +};