common_element('span', 'address unconfirmed', $confirm->address . ' (' . $carrier->name . ')');
common_element('span', 'input_instructions',
_('Awaiting confirmation on this phone number.'));
- common_hidden('sms', $user->sms);
- common_hidden('carrier', $user->carrier);
+ common_hidden('sms', $confirm->address);
+ common_hidden('carrier', $confirm->address_extra);
common_element_end('p');
common_submit('cancel', _('Cancel'));
common_input('code', _('Confirmation code'), NULL,
function save_preferences() {
- $smsnotify = $this->boolean('emailpost');
+ $smsnotify = $this->boolean('smsnotify');
$user = common_current_user();
$this->show_form(_('No pending confirmation to cancel.'));
return;
}
- if ($confirm->address != $sms || $confirm->address_extra != $carrier) {
- $this->show_form(_('That is the wrong IM address.'));
+ if ($confirm->address != $sms) {
+ $this->show_form(_('That is the wrong confirmation number.'));
return;
}
$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__);
}
common_redirect(common_local_url('confirmaddress',
- array('code' => $this->code)));
+ array('code' => $code)));
}
}