Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_gateway.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-09-19 10:04:14 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-09-19 10:04:14 +0300
commitdea113c997594b4d1afb4857810c3f4c39a9979f (patch)
treefc6c668134c779605bfea1f9c4dbec7cae97ffe0 /lib
parentef0c80b84891ac82f53ea0176eacacd58c8eecde (diff)
Add unit tests for the gateway state and factory classes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/Gateway/State.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/Gateway/State.php b/lib/Service/Gateway/State.php
index 00c4c22..43b42d4 100644
--- a/lib/Service/Gateway/State.php
+++ b/lib/Service/Gateway/State.php
@@ -52,11 +52,11 @@ class State {
}
public function isVerifying(): bool {
- return $this->state === self::DISABLED;
+ return $this->state === self::VERIFYING;
}
public function isEnabled(): bool {
- return $this->state === self::DISABLED;
+ return $this->state === self::ENABLED;
}
}