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/OvhConfig.php')
-rw-r--r--lib/Service/Gateway/SMS/Provider/OvhConfig.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Service/Gateway/SMS/Provider/OvhConfig.php b/lib/Service/Gateway/SMS/Provider/OvhConfig.php
index 0e4793d..80b6538 100644
--- a/lib/Service/Gateway/SMS/Provider/OvhConfig.php
+++ b/lib/Service/Gateway/SMS/Provider/OvhConfig.php
@@ -46,7 +46,7 @@ class OvhConfig 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();
}
@@ -78,37 +78,37 @@ class OvhConfig implements IProviderConfig {
}
public function setApplicationKey(string $appKey) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_application_key', $appKey);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_application_key', $appKey);
}
public function setApplicationSecret(string $appSecret) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_application_secret', $appSecret);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_application_secret', $appSecret);
}
public function setConsumerKey(string $consumerKey) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_consumer_key', $consumerKey);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_consumer_key', $consumerKey);
}
public function setEndpoint(string $endpoint) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_endpoint', $endpoint);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_endpoint', $endpoint);
}
public function setAccount($account) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_account', $account);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_account', $account);
}
public function setSender($sender) {
- $this->config->setAppValue(Application::APP_NAME, 'ovh_sender', $sender);
+ $this->config->setAppValue(Application::APP_ID, 'ovh_sender', $sender);
}
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);
}
}
}