From 2da111255361e65d32d106d414bd8e9868510bfc Mon Sep 17 00:00:00 2001 From: jeremykenedy Date: Mon, 12 Sep 2016 23:44:48 -0700 Subject: [PATCH 1/3] fixed password reset view, added HTML email reset password email, and added password reset view with password reset form --- config/auth.php | 5 +- .../clean-blog/emails/password.blade.php | 344 ++++++++++++++++++ .../pages/auth/passwords/email.blade.php | 2 +- .../pages/auth/passwords/reset.blade.php | 95 +++++ 4 files changed, 444 insertions(+), 2 deletions(-) create mode 100644 resources/views/themes/clean-blog/emails/password.blade.php create mode 100644 resources/views/themes/clean-blog/pages/auth/passwords/reset.blade.php diff --git a/config/auth.php b/config/auth.php index 3fa7f49..2a0083f 100644 --- a/config/auth.php +++ b/config/auth.php @@ -98,10 +98,13 @@ 'passwords' => [ 'users' => [ 'provider' => 'users', - 'email' => 'auth.emails.password', + 'email' => 'themes.'.env('THEME_NAME').'.emails.password', 'table' => 'password_resets', 'expire' => 60, ], ], ]; + + + diff --git a/resources/views/themes/clean-blog/emails/password.blade.php b/resources/views/themes/clean-blog/emails/password.blade.php new file mode 100644 index 0000000..bff4d9d --- /dev/null +++ b/resources/views/themes/clean-blog/emails/password.blade.php @@ -0,0 +1,344 @@ + + + + + + + Your password reset request + + + + + + +
+ + + + + + +
+ + + + + + + + +
+ + + + +
 
+
+ + + + + + +
+ + + + + + + + + +
+ Vuedo Password Reset +
+ + + + +
+ + + + +
 
+
+
+
+ + + + + + + + + + + + + + +
+ + + + +
+ + Hi there, + +
+ + + + + + + + +
+

+ A password reset request received.
+ Click the link below to reset your password. +

+
+ +
+ + + + +
+ + + + + +
+ +
+ +
+
+
+
+ + + + +
+ + + + +
 
+
+
+ +
+ + + + + + +
+ + + + +
 
+
+ +
+ +
+                                                             +
+ +
+ + \ No newline at end of file diff --git a/resources/views/themes/clean-blog/pages/auth/passwords/email.blade.php b/resources/views/themes/clean-blog/pages/auth/passwords/email.blade.php index 4a30ada..108b017 100644 --- a/resources/views/themes/clean-blog/pages/auth/passwords/email.blade.php +++ b/resources/views/themes/clean-blog/pages/auth/passwords/email.blade.php @@ -1,4 +1,4 @@ -@extends('themes.clean-blog.partials.layout') +@extends('themes.clean-blog.layouts.default') @section("header") diff --git a/resources/views/themes/clean-blog/pages/auth/passwords/reset.blade.php b/resources/views/themes/clean-blog/pages/auth/passwords/reset.blade.php new file mode 100644 index 0000000..64a3f5e --- /dev/null +++ b/resources/views/themes/clean-blog/pages/auth/passwords/reset.blade.php @@ -0,0 +1,95 @@ +@extends('themes.clean-blog.layouts.default') + +@section("header") + + +
+
+
+
+
+

Vuedo Deluxe

+
+ A Clean Blog Theme by Start Bootstrap +
+
+
+
+
+@endsection + + +@section('content') +
+ +

Reset Password

+ + @if (session('status')) +
+ {{ session('status') }} +
+ @endif + + @if (count($errors) > 0) +
+
+
+
+ The following errors occured:

+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+
+
+
+ @endif + +
+
+
+
+ + {!! csrf_field() !!} + + + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+@endsection From 6cc3936048e5e482f6516799f1d14343f05ad287 Mon Sep 17 00:00:00 2001 From: jeremykenedy Date: Tue, 13 Sep 2016 00:03:38 -0700 Subject: [PATCH 2/3] update mail.php to obtain from email from .env file --- config/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mail.php b/config/mail.php index a076588..23f91eb 100644 --- a/config/mail.php +++ b/config/mail.php @@ -55,7 +55,7 @@ | */ - 'from' => ['address' => null, 'name' => null], + 'from' => ['address' => env('MAIL_USERNAME'), 'name' => null], /* |-------------------------------------------------------------------------- From 65f99994c55fc46a29c34e937219c424d2ed9b75 Mon Sep 17 00:00:00 2001 From: jeremykenedy Date: Tue, 13 Sep 2016 00:06:52 -0700 Subject: [PATCH 3/3] udpate .env.example to closer match an out the box email for gmail to send password reset emails from system --- .env.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 452f1bc..1bfda66 100644 --- a/.env.example +++ b/.env.example @@ -20,11 +20,11 @@ REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp -MAIL_HOST=mailtrap.io -MAIL_PORT=2525 -MAIL_USERNAME= -MAIL_PASSWORD= -MAIL_ENCRYPTION=null +MAIL_HOST=smtp.gmail.com +MAIL_PORT=587 +MAIL_USERNAME=YOURgmailEMAILhere +MAIL_PASSWORD=YOURgmailPASSWORDhere +MAIL_ENCRYPTION=tls THEME_NAME=clean-blog