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:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-19 10:21:38 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-19 10:21:38 +0300
commitcdc3c010bce2be923bfb3248ea88db10eaf52606 (patch)
tree1a1a89deb23133c42e345b49f101f78819faf936 /lib/Service/SetupService.php
parent356aae80df77248b39efc2f4b43dd00f2c70c044 (diff)
Rename the app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Service/SetupService.php')
-rw-r--r--lib/Service/SetupService.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Service/SetupService.php b/lib/Service/SetupService.php
index 65a124a..e4f83c8 100644
--- a/lib/Service/SetupService.php
+++ b/lib/Service/SetupService.php
@@ -22,18 +22,18 @@ declare(strict_types = 1);
*
*/
-namespace OCA\TwoFactorSms\Service;
+namespace OCA\TwoFactorGateawy\Service;
use Exception;
use OC\Accounts\AccountManager;
-use OCA\TwoFactorSms\AppInfo\Application;
-use OCA\TwoFactorSms\Exception\PhoneNumberMismatchException;
-use OCA\TwoFactorSms\Exception\PhoneNumberMissingException;
-use OCA\TwoFactorSms\Exception\SmsTransmissionException;
-use OCA\TwoFactorSms\Exception\VerificationException;
-use OCA\TwoFactorSms\Exception\VerificationTransmissionException;
-use OCA\TwoFactorSms\Provider\SmsProvider;
-use OCA\TwoFactorSms\Provider\State;
+use OCA\TwoFactorGateawy\AppInfo\Application;
+use OCA\TwoFactorGateawy\Exception\PhoneNumberMismatchException;
+use OCA\TwoFactorGateawy\Exception\PhoneNumberMissingException;
+use OCA\TwoFactorGateawy\Exception\SmsTransmissionException;
+use OCA\TwoFactorGateawy\Exception\VerificationException;
+use OCA\TwoFactorGateawy\Exception\VerificationTransmissionException;
+use OCA\TwoFactorGateawy\Provider\SmsProvider;
+use OCA\TwoFactorGateawy\Provider\State;
use OCP\IConfig;
use OCP\IUser;
use OCP\Security\ISecureRandom;
@@ -64,7 +64,7 @@ class SetupService {
$state = $this->config->getUserValue($user->getUID(), Application::APP_NAME,
'verified', 'false') === 'true' ? SmsProvider::STATE_ENABLED : SmsProvider::STATE_DISABLED;
$verifiedNumber = $this->config->getUserValue($user->getUID(),
- 'twofactor_sms', 'phone', null);
+ 'twofactor_gateway', 'phone', null);
return new State($state, $verifiedNumber);
}
@@ -75,7 +75,7 @@ class SetupService {
public function getChallengePhoneNumber(IUser $user): string {
$numerFromUserData = $this->getVerificationPhoneNumber($user);
$verifiedNumber = $this->config->getUserValue($user->getUID(),
- 'twofactor_sms', 'phone', null);
+ 'twofactor_gateway', 'phone', null);
if (is_null($verifiedNumber)) {
throw new PhoneNumberMissingException('verified phone number is missing');
}