1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Very rough implementation of forgot password

This commit is contained in:
Toby Zerner
2015-05-26 11:14:06 +09:30
parent d481a38029
commit feb4676aa0
18 changed files with 376 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateResetTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reset_tokens', function (Blueprint $table) {
$table->string('id');
$table->integer('user_id')->unsigned();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('reset_tokens');
}
}

View File

@@ -14,7 +14,6 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('username', 100)->unique();
$table->string('email', 150)->unique();