1
0
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:
Toby Zerner
2015-05-27 16:25:44 +09:30
parent b6a8416daf
commit 87f84f0614
16 changed files with 96 additions and 34 deletions

View File

@@ -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');
});
}

View File

@@ -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');
}
}