We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70680c5 commit fd9dc8bCopy full SHA for fd9dc8b
1 file changed
lib/Service/IdentifyMethodService.php
@@ -99,6 +99,13 @@ private function getNewInstanceOfMethod(string $name): IIdentifyMethod {
99
$className = 'OCA\Libresign\Service\IdentifyMethod\\' . ucfirst($name);
100
if (!class_exists($className)) {
101
$className = 'OCA\Libresign\Service\IdentifyMethod\\SignatureMethod\\' . ucfirst($name);
102
+ if (!class_exists($className)) {
103
+ // TRANSLATORS When is requested to a person to sign a file, is
104
+ // necessary identify what is the identification method. The
105
+ // identification method is used to define how will be the sign
106
+ // flow.
107
+ throw new LibresignException($this->l10n->t('Invalid identification method'));
108
+ }
109
}
110
/** @var IIdentifyMethod */
111
$identifyMethod = clone \OCP\Server::get($className);
0 commit comments