Differential D20023 Diff 47820 src/applications/auth/xaction/PhabricatorAuthContactNumberPrimaryTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/xaction/PhabricatorAuthContactNumberPrimaryTransaction.php
| Show All 35 Lines | foreach ($xactions as $xaction) { | ||||
| if ($object->isDisabled()) { | if ($object->isDisabled()) { | ||||
| $errors[] = $this->newInvalidError( | $errors[] = $this->newInvalidError( | ||||
| pht( | pht( | ||||
| 'You can not make a disabled number a primary contact number.'), | 'You can not make a disabled number a primary contact number.'), | ||||
| $xaction); | $xaction); | ||||
| continue; | continue; | ||||
| } | } | ||||
| $mfa_error = $this->newContactNumberMFAError($object, $xaction); | |||||
| if ($mfa_error) { | |||||
| $errors[] = $mfa_error; | |||||
| continue; | |||||
| } | |||||
| } | } | ||||
| return $errors; | return $errors; | ||||
| } | } | ||||
| } | } | ||||