]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/emailsettings.php
back out my change to the link format; see if it helps
[quix0rs-gnu-social.git] / actions / emailsettings.php
index 1012c9661eb5a53e79abc9e0592ad0fd43d9ad99..b7e356c25683a6171298090ed729b91a17707a00 100644 (file)
@@ -142,7 +142,7 @@ class EmailsettingsAction extends SettingsAction {
                        return;
                }
 
-               $email = common_normalize_email($email);
+               $email = common_canonical_email($email);
 
                if (!$email) {
                    $this->show_form(_('Cannot normalize that email address'));
@@ -173,6 +173,10 @@ class EmailsettingsAction extends SettingsAction {
                        return;
                }
 
+               mail_confirm_address($confirm->code,
+                                                        $user->nickname,
+                                                        $email);
+
                $msg = _('A confirmation code was sent to the email address you added. Check your inbox (and spam box!) for the code and instructions on how to use it.');
 
                $this->show_form($msg, TRUE);