summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/confirmaddress.php2
-rw-r--r--actions/smssettings.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/actions/confirmaddress.php b/actions/confirmaddress.php
index 28849d41b..3cffda871 100644
--- a/actions/confirmaddress.php
+++ b/actions/confirmaddress.php
@@ -61,6 +61,8 @@ class ConfirmaddressAction extends Action {
if ($type == 'sms') {
$cur->carrier = ($confirm->address_extra)+0;
+ $carrier = Sms_carrier::staticGet($cur->carrier);
+ $cur->smsemail = $carrier->toEmailAddress($cur->sms);
}
$result = $cur->updateKeys($orig_user);
diff --git a/actions/smssettings.php b/actions/smssettings.php
index c2c305128..f0c84ae69 100644
--- a/actions/smssettings.php
+++ b/actions/smssettings.php
@@ -262,6 +262,7 @@ class SmssettingsAction extends EmailsettingsAction {
$original = clone($user);
$user->sms = NULL;
$user->carrier = NULL;
+ $user->smsemail = NULL;
$result = $user->updateKeys($original);
if (!$result) {
common_log_db_error($user, 'UPDATE', __FILE__);