Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11725906
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/resources/lang/en/emails.php b/resources/lang/en/emails.php
new file mode 100644
index 0000000..897caa8
--- /dev/null
+++ b/resources/lang/en/emails.php
@@ -0,0 +1,40 @@
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | E-mail content
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used in mails sent by Auth Grove.
+ |
+ */
+
+ ///
+ /// Master template
+ ///
+
+ //The first line of every mail sent
+ 'greetings' => 'Hi,',
+
+ //Signature
+ 'signature-separator' => '--',
+ 'signature' => 'Auth Grove',
+
+ ///
+ /// Reset password mail
+ ///
+
+ //A paragraph of introduction explaining someone has visited /auth/recover
+ //to recover account access and asked to reset the password by e-mail.
+ 'reset-password-intro' => 'Someone (we hope yourself) has requested to recover access to your account.',
+
+ //A paragraph to explain the procedure. It will immediately be followed by
+ //a new line with the URL the user must go to achieve the reset.
+ 'reset-password-callforaction' => 'To do so, you can reset your password at the following URL:',
+
+ //A paragraph to indicate who requested the action. It will immediately be
+ //followed by a new line with the presumed IP address of the requester.
+ 'reset-password-origin' => "This was requested from the following IP address:",
+];
diff --git a/resources/views/emails/master.blade.php b/resources/views/emails/master.blade.php
new file mode 100644
index 0000000..ec3955d
--- /dev/null
+++ b/resources/views/emails/master.blade.php
@@ -0,0 +1,6 @@
+{{email.greetings}}
+
+@yield('mail-content')
+
+{{email.signature-separator}}
+{{email.signature}}
\ No newline at end of file
diff --git a/resources/views/emails/password.blade.php b/resources/views/emails/password.blade.php
index 2030539..a08e0f0 100644
--- a/resources/views/emails/password.blade.php
+++ b/resources/views/emails/password.blade.php
@@ -1 +1,12 @@
-Click here to reset your password: {{ url('password/reset/'.$token) }}
+@extends('emails.master')
+
+@section('mail-content')
+@lang('emails.reset-password-intro')
+
+@lang('emails.reset-password-callforaction')
+{{ url('auth/reset/' . $token) }}
+
+@lang('emails.reset-password-origin')
+{{ \Keruald\get_remote_addr() }}
+
+@endsection
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 22:31 (45 m, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991870
Default Alt Text
(2 KB)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment