From 43204a3a95ccf5d12c6970bcfe2992de242a08d5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Jul 2014 21:46:56 +0200 Subject: [PATCH] Added routine to change your password. --- ...083517_create_password_reminders_table.php | 33 ------------ app/views/layouts/default.blade.php | 1 + app/views/partials/menu.blade.php | 51 ++++++++++++++++++ app/views/profile/change-password.blade.php | 52 +++++++++++++++++++ app/views/profile/index.blade.php | 17 ++++++ 5 files changed, 121 insertions(+), 33 deletions(-) delete mode 100644 app/database/migrations/2014_06_29_083517_create_password_reminders_table.php create mode 100644 app/views/partials/menu.blade.php create mode 100644 app/views/profile/change-password.blade.php create mode 100644 app/views/profile/index.blade.php diff --git a/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php b/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php deleted file mode 100644 index dfbcf83fef..0000000000 --- a/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php +++ /dev/null @@ -1,33 +0,0 @@ -string('email')->index(); - $table->string('token')->index(); - $table->timestamp('created_at'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('password_reminders'); - } - -} diff --git a/app/views/layouts/default.blade.php b/app/views/layouts/default.blade.php index 08c91c3350..6c86170f6b 100644 --- a/app/views/layouts/default.blade.php +++ b/app/views/layouts/default.blade.php @@ -19,6 +19,7 @@
+ @include('partials.menu') @include('partials.flashes') @yield('content')
diff --git a/app/views/partials/menu.blade.php b/app/views/partials/menu.blade.php new file mode 100644 index 0000000000..8383a4b23d --- /dev/null +++ b/app/views/partials/menu.blade.php @@ -0,0 +1,51 @@ + \ No newline at end of file diff --git a/app/views/profile/change-password.blade.php b/app/views/profile/change-password.blade.php new file mode 100644 index 0000000000..ff4371a2f1 --- /dev/null +++ b/app/views/profile/change-password.blade.php @@ -0,0 +1,52 @@ +@extends('layouts.default') +@section('content') +
+
+

Change your password
+ Logged in as {{Auth::user()->email}} +

+
+
+
+
+

+ Use this extremely obvious form to change your password. +

+
+
+
+
+ + {{Form::open(['class' => 'form-horizontal'])}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+
+ {{Form::close()}} + +
+
+@stop +@section('scripts') +@stop \ No newline at end of file diff --git a/app/views/profile/index.blade.php b/app/views/profile/index.blade.php new file mode 100644 index 0000000000..2a569df30c --- /dev/null +++ b/app/views/profile/index.blade.php @@ -0,0 +1,17 @@ +@extends('layouts.default') +@section('content') +
+
+

Profile
+ Logged in as {{Auth::user()->email}} +

+
+
+
+ +
+@stop +@section('scripts') +@stop \ No newline at end of file