Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f638f429
Commit
f638f429
authored
Jan 09, 2015
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6748: provided a text version of the password-reset email.
parent
fa07b12f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
text.php
apps/advanced/common/mail/layouts/text.php
+12
-0
passwordResetToken-text.php
apps/advanced/common/mail/passwordResetToken-text.php
+0
-0
PasswordResetRequestForm.php
apps/advanced/frontend/models/PasswordResetRequestForm.php
+1
-1
No files found.
apps/advanced/common/mail/layouts/text.php
0 → 100644
View file @
f638f429
<?php
use
yii\helpers\Html
;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php
$this
->
beginPage
()
?>
<?php
$this
->
beginBody
()
?>
<?=
$content
?>
<?php
$this
->
endBody
()
?>
<?php
$this
->
endPage
()
?>
apps/advanced/common/mail/passwordResetToken-text.php
0 → 100644
View file @
f638f429
apps/advanced/frontend/models/PasswordResetRequestForm.php
View file @
f638f429
...
@@ -47,7 +47,7 @@ class PasswordResetRequestForm extends Model
...
@@ -47,7 +47,7 @@ class PasswordResetRequestForm extends Model
}
}
if
(
$user
->
save
())
{
if
(
$user
->
save
())
{
return
\Yii
::
$app
->
mailer
->
compose
(
'passwordResetToken'
,
[
'user'
=>
$user
])
return
\Yii
::
$app
->
mailer
->
compose
(
[
'html'
=>
'passwordResetToken-html'
,
'text'
=>
'passwordResetToken-text'
]
,
[
'user'
=>
$user
])
->
setFrom
([
\Yii
::
$app
->
params
[
'supportEmail'
]
=>
\Yii
::
$app
->
name
.
' robot'
])
->
setFrom
([
\Yii
::
$app
->
params
[
'supportEmail'
]
=>
\Yii
::
$app
->
name
.
' robot'
])
->
setTo
(
$this
->
email
)
->
setTo
(
$this
->
email
)
->
setSubject
(
'Password reset for '
.
\Yii
::
$app
->
name
)
->
setSubject
(
'Password reset for '
.
\Yii
::
$app
->
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment