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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php')
-rw-r--r--lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php b/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php
index efafa88..7020667 100644
--- a/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php
+++ b/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php
@@ -41,7 +41,7 @@ class HuaweiE3531Config implements IProviderConfig {
}
private function getOrFail(string $key): string {
- $val = $this->config->getAppValue(Application::APP_NAME, $key, null);
+ $val = $this->config->getAppValue(Application::APP_ID, $key, null);
if (is_null($val)) {
throw new ConfigurationException();
}
@@ -53,17 +53,17 @@ class HuaweiE3531Config implements IProviderConfig {
}
public function setUrl(string $url) {
- $this->config->setAppValue(Application::APP_NAME, 'huawei_e3531_api', $url);
+ $this->config->setAppValue(Application::APP_ID, 'huawei_e3531_api', $url);
}
public function isComplete(): bool {
- $set = $this->config->getAppKeys(Application::APP_NAME);
+ $set = $this->config->getAppKeys(Application::APP_ID);
return count(array_intersect($set, self::expected)) === count(self::expected);
}
public function remove() {
foreach (self::expected as $key) {
- $this->config->deleteAppValue(Application::APP_NAME, $key);
+ $this->config->deleteAppValue(Application::APP_ID, $key);
}
}
}