mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Improvements to change/forgot password
This commit is contained in:
@@ -5,7 +5,6 @@ use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAccessTokensTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -14,9 +13,10 @@ class CreateAccessTokensTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('access_tokens', function (Blueprint $table) {
|
||||
|
||||
$table->string('id', 100)->primary();
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->timestamp('created_at');
|
||||
$table->timestamp('expires_at');
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateResetTokensTable extends Migration
|
||||
class CreatePasswordTokensTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@@ -12,9 +12,10 @@ class CreateResetTokensTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('reset_tokens', function (Blueprint $table) {
|
||||
$table->string('id');
|
||||
Schema::create('password_tokens', function (Blueprint $table) {
|
||||
$table->string('id', 100)->primary();
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->timestamp('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -25,6 +26,6 @@ class CreateResetTokensTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('reset_tokens');
|
||||
Schema::drop('password_tokens');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user