Skip to content

Commit 8725a75

Browse files
author
Bastian Heist
committed
TASK: Remove deprecated template variables, update README, fix dep version
1 parent 527d00a commit 8725a75

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Classes/Controller/RegistrationController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,14 @@ public function registerAction(RegistrationFlow $registrationFlow)
7272
[$registrationFlow->getEmail()],
7373
[
7474
'activationLink' => $activationLink,
75-
'registrationFlow' => $registrationFlow,
76-
// BaseUri can be used to embed resources (images) into the email
77-
'baseUri' => htmlspecialchars($this->controllerContext->getRequest()->getHttpRequest()->getBaseUri())
75+
'registrationFlow' => $registrationFlow
7876
],
7977
'sandstorm_usermanagement_sender_email'
8078
);
8179

8280
$this->registrationFlowRepository->add($registrationFlow);
8381

8482
$this->view->assign('registrationFlow', $registrationFlow);
85-
86-
//This line will be removed in 5.0.0
87-
$this->view->assign('email', $registrationFlow->getEmail());
8883
}
8984

9085
/**

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Sandstorm.UserManagement is currently being maintained for Neos 2.3 LTS and Neos
1818
| Neos 2.2, Flow 3.2 | 1.x | No |
1919

2020
## Breaking changes in Version 5.x
21+
### Configuration Changes
2122
Since I've removed the direct dependency to swiftmailer in favor of the Sandstorm/TemplateMailer package
2223
(which provides css inlining), the EmailService in this package was removed. This means that you will need
2324
to change some of your config options, because they are now set in the Sandstorm.TemplateMailer config path
@@ -38,6 +39,13 @@ Sandstorm:
3839
address: yoursenderemail@yourapp.de
3940
```
4041
42+
### Changes to Email Templates
43+
In the registration email templates, two variables are no longer available by default:
44+
* "applicationName" (filled with configured email senderAddress)
45+
* "email" (filled with the email address the mail is sent to)
46+
However, in the registration email, "registrationFlow" is now available, which gives access to the email as well to all
47+
other information the user has entered during the registration process (as long as it is stored in the RegistrationFlow object).
48+
4149
# Configuration
4250
4351
## Setup

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"require": {
2525
"neos/flow": "^4.0",
26-
"sandstorm/templatemailer": "~1.0.0"
26+
"sandstorm/templatemailer": "^1.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

0 commit comments

Comments
 (0)