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:
30
migrations/2015_02_24_000000_create_reset_tokens_table.php
Normal file
30
migrations/2015_02_24_000000_create_reset_tokens_table.php
Normal 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');
|
||||
}
|
||||
}
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user