Notification email updated without confirmation
Summary
When updating a GitLab user email address under /profile, confirmation is required to make the change permanent, for the main email. However the notification_email is updated instantly without confirmation. This is also not reflected in `/profile/notifications.
Steps to reproduce
- Go to
/profile - Update the "Email" -
gitlab@example.org - Confirmation is now required.
Expected behavior
The notification_email is not updated until the address is confirmed.
Actual behavior
notification_email is updated.
Output
before profile change
=> #<User id: 1, email: "admin@example.com", notification_email: "admin@example.com">
after profile change
=> #<User id: 1, email: "admin@example.com", notification_email: "test@example.org">
Edited by 🤖 GitLab Bot 🤖