Browse Source

PW-reminder

Daniel 10 years ago
parent
commit
41f27fbddb

+ 32 - 0
app/database/migrations/2013_11_18_180146_create_password_reminders_table.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+
+class CreatePasswordRemindersTable extends Migration {
+
+	/**
+	 * Run the migrations.
+	 *
+	 * @return void
+	 */
+	public function up()
+	{
+		Schema::create('password_reminders', function($t)
+		{
+			$t->string('email');
+			$t->string('token');
+			$t->timestamp('created_at');
+		});
+	}
+
+	/**
+	 * Reverse the migrations.
+	 *
+	 * @return void
+	 */
+	public function down()
+	{
+		Schema::drop('password_reminders');
+	}
+
+}

+ 5 - 1
app/views/settings.blade.php

@@ -39,6 +39,10 @@
 			<div class="panel panel-default">
 				<div class="panel-heading"><h2 class="panel-title">Email ändern</h2></div>
 				<div class="panel-body">
+					<dl class="dl-horizontal">
+						<dt>Aktuelle Email</dt>
+						<dd>{{Auth::user()->email}}</dd>
+					</dl>
 					{{ Form::open(array('url' => 'settings/email')) }}
 						<div class="input-group form-group <?php if($errors->has('pw')) echo "has-error" ?>">
 							<span class="input-group-addon">
@@ -69,4 +73,4 @@
 
 @section('title')
 Einstellungen ~
-@stop
+@stop