Differential D14284 Diff 37384 src/applications/passphrase/editor/PassphraseCredentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/editor/PassphraseCredentialTransactionEditor.php
| Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| pht('Credential name is required.'), | pht('Credential name is required.'), | ||||
| nonempty(last($xactions), null)); | nonempty(last($xactions), null)); | ||||
| $error->setIsMissingFieldError(true); | $error->setIsMissingFieldError(true); | ||||
| $errors[] = $error; | $errors[] = $error; | ||||
| } | } | ||||
| break; | break; | ||||
| case PassphraseCredentialTransaction::TYPE_USERNAME: | case PassphraseCredentialTransaction::TYPE_USERNAME: | ||||
| $credential_type = $object->getCredentialTypeImplementation(); | $credential_type = $object->getImplementation(); | ||||
| if (!$credential_type->shouldRequireUsername()) { | if (!$credential_type->shouldRequireUsername()) { | ||||
| break; | break; | ||||
| } | } | ||||
| $missing = $this->validateIsEmptyTextField( | $missing = $this->validateIsEmptyTextField( | ||||
| $object->getUsername(), | $object->getUsername(), | ||||
| $xactions); | $xactions); | ||||
| if ($missing) { | if ($missing) { | ||||
| Show All 19 Lines | |||||