We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63415b8 commit 94bd6a8Copy full SHA for 94bd6a8
libraries/src/User/User.php
@@ -740,6 +740,11 @@ public function save($updateOnly = false)
740
}
741
742
743
+ // Unset the activation token, if the mail address changes - that affects both, activation and PW resets
744
+ if ($this->email !== $oldUser->email && $this->id !== 0 && !empty($this->activation) && !$this->block) {
745
+ $table->activation = '';
746
+ }
747
+
748
// Fire the onUserBeforeSave event.
749
PluginHelper::importPlugin('user');
750
0 commit comments