From 1e5052da1dff7a2ebf04622ee8eb4c98fc74cc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Tue, 23 May 2023 16:35:57 +0200 Subject: [PATCH] Fix #103 Limit the size of account_creation_request_tokens token column to 16 characters --- ...5_22_123231_create_account_creation_request_tokens_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexiapi/database/migrations/2023_05_22_123231_create_account_creation_request_tokens_table.php b/flexiapi/database/migrations/2023_05_22_123231_create_account_creation_request_tokens_table.php index dbe7d25..51b84a0 100644 --- a/flexiapi/database/migrations/2023_05_22_123231_create_account_creation_request_tokens_table.php +++ b/flexiapi/database/migrations/2023_05_22_123231_create_account_creation_request_tokens_table.php @@ -10,7 +10,7 @@ class CreateAccountCreationRequestTokensTable extends Migration { Schema::create('account_creation_request_tokens', function (Blueprint $table) { $table->id(); - $table->string('token')->index(); + $table->string('token', 16)->index(); $table->boolean('used')->default(false); $table->dateTime('validated_at')->nullable();