Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
email_change_verification
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
email_change_verification
Merge requests
!5
Issue
#3310066
: Drupal 8 Compatibility
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Issue
#3310066
: Drupal 8 Compatibility
issue/email_change_verification-3310066:3310066-drupal-8-compatibility
into
1.0.x
Overview
0
Commits
2
Pipelines
0
Changes
3
Closed
Issue #3310066: Drupal 8 Compatibility
David Peherstorfer
requested to merge
issue/email_change_verification-3310066:3310066-drupal-8-compatibility
into
1.0.x
Sep 16, 2022
Overview
0
Commits
2
Pipelines
0
Changes
3
0
0
Merge request reports
Compare
1.0.x
version 1
f72069c2
Sep 16, 2022
1.0.x (base)
and
latest version
latest version
4772b213
2 commits,
Sep 16, 2022
version 1
f72069c2
1 commit,
Sep 16, 2022
3 files
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/Controller/EmailChangeController.php
+
2
−
2
View file @ 4772b213
Edit in single-file editor
Open in Web IDE
Show full file
@@ -93,7 +93,7 @@ class EmailChangeController extends ControllerBase {
$route_parameters
=
[];
$route_options
=
[];
$setRedirectEvent
=
new
EmailChangeVerificationSetRedirect
(
$user
,
$route_name
,
$route_parameters
,
$route_options
);
$this
->
eventDispatcher
->
dispatch
(
$setRedirectEvent
,
EmailChangeVerificationEvents
::
EMAIL_CHANGE_VERIFICATION_SET_REDIRECT
);
$this
->
eventDispatcher
->
dispatch
(
EmailChangeVerificationEvents
::
EMAIL_CHANGE_VERIFICATION_SET_REDIRECT
,
$setRedirectEvent
);
$redirect
=
$this
->
redirect
(
$setRedirectEvent
->
getRouteName
(),
$setRedirectEvent
->
getRouteParameters
(),
$setRedirectEvent
->
getOptions
());
// If the current user does not equal the user for which to change the
@@ -130,7 +130,7 @@ class EmailChangeController extends ControllerBase {
$user
->
save
();
$this
->
messenger
()
->
addMessage
(
$this
->
t
(
'Your email address has been changed to %mail.'
,
[
'%mail'
=>
$new_email
]));
$successEvent
=
new
EmailChangeVerificationSuccess
(
$user
);
$this
->
eventDispatcher
->
dispatch
(
$successEvent
,
EmailChangeVerificationEvents
::
EMAIL_CHANGE_VERIFICATION_SUCCESS
);
$this
->
eventDispatcher
->
dispatch
(
EmailChangeVerificationEvents
::
EMAIL_CHANGE_VERIFICATION_SUCCESS
,
$successEvent
);
}
else
{
$this
->
messenger
()
->
addError
(
$this
->
t
(
'You have tried to use an email address that is already in use.'
));
Loading