Lines Matching full:phone
18 * This user will need to supply a phone number and their cell provider.
22 // Provide an input for the phone number.
23 $phone = $this->_settingGet("phone", '');
24 # This is to move the phone number from shared settings into this
26 if (!$phone) {
27 $phone = $this->_sharedSettingGet('phone','');
28 if ($phone) {
29 $this->_settingSet('phone', $phone);
30 $this->attribute->del('twofactor', 'phone');
34 …$elements['phone'] = form_makeTextField('phone', $phone, $this->getLang('phone'), '', 'block', arr…
39 // If the phone number has not been verified, then do so here.
40 if ($phone) {
47 // Render the element to remove the phone since it exists.
59 $this->_settingDelete("phone");
65 $oldphone = $this->_settingGet("phone", '');
85 $phone = $INPUT->str('phone', '');
86 if ($phone !== '') {
87 if (preg_match('/^[0-9]{5,}$/',$phone) != false) {
88 if ($phone != $oldphone) {
89 if ($this->_settingSet("phone", $phone)== false) {
90 msg("TwoFactor: Error setting phone.", -1);
92 // Delete the verification for the phone number if it was changed.
107 // Delete the verification for the phone number if the carrier was changed.
133 $phone = $this->_settingGet("phone");
134 # This is to move the phone number from shared settings into this
136 if (!$phone) {
137 $phone = $this->_sharedSettingGet('phone','');
138 if ($phone) {
139 $this->_settingSet('phone', $phone);
140 $this->_sharedSettingDelete('phone');
143 if (!$phone) {
144 msg("TwoFactor: User has not defined a phone number. Failing.", -1);
145 // If there is no phone number, then fail.
152 $to = "{$phone}@{$providers[$gateway]}";
185 * to email an SMS to a phone user.