DONE: replace email verification by link instead of otp
This commit is contained in:
+5
-13
@@ -6,10 +6,12 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::dropIfExists('email_verification_otps');
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::create('email_verification_otps', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
@@ -18,16 +20,6 @@ return new class extends Migration
|
||||
$table->timestamp('expires_at');
|
||||
$table->unsignedTinyInteger('attempts')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['user_id', 'expires_at']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('email_verification_otps');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user