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
1cf5e47b
Commit
1cf5e47b
authored
Jan 10, 2015
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken password reset mail in advanced app
- ensure HTML version is acutally HTML formatted - added valid text version fixes #6814 original issue #6748
parent
8625b482
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
passwordResetToken-html.php
apps/advanced/common/mail/passwordResetToken-html.php
+5
-4
passwordResetToken-text.php
apps/advanced/common/mail/passwordResetToken-text.php
+13
-0
No files found.
apps/advanced/common/mail/passwordResetToken.php
→
apps/advanced/common/mail/passwordResetToken
-html
.php
View file @
1cf5e47b
...
@@ -6,9 +6,10 @@ use yii\helpers\Html;
...
@@ -6,9 +6,10 @@ use yii\helpers\Html;
$resetLink
=
Yii
::
$app
->
urlManager
->
createAbsoluteUrl
([
'site/reset-password'
,
'token'
=>
$user
->
password_reset_token
]);
$resetLink
=
Yii
::
$app
->
urlManager
->
createAbsoluteUrl
([
'site/reset-password'
,
'token'
=>
$user
->
password_reset_token
]);
?>
?>
<div
class=
"password-reset"
>
<p>
Hello
<?=
Html
::
encode
(
$user
->
username
)
?>
,
</p>
Hello
<?=
Html
::
encode
(
$user
->
username
)
?>
,
<p>
Follow the link below to reset your password:
</p>
Follow the link below to reset your password:
<p>
<?=
Html
::
a
(
Html
::
encode
(
$resetLink
),
$resetLink
)
?>
</p>
</div>
<?=
Html
::
a
(
Html
::
encode
(
$resetLink
),
$resetLink
)
?>
apps/advanced/common/mail/passwordResetToken-text.php
View file @
1cf5e47b
<?php
use
yii\helpers\Html
;
/* @var $this yii\web\View */
/* @var $user common\models\User */
$resetLink
=
Yii
::
$app
->
urlManager
->
createAbsoluteUrl
([
'site/reset-password'
,
'token'
=>
$user
->
password_reset_token
]);
?>
Hello
<?=
Html
::
encode
(
$user
->
username
)
?>
,
Follow the link below to reset your password:
<?=
$resetLink
?>
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