@@ -89,7 +89,7 @@ |
||
89 | 89 | $verificationNumber = $this->random->generate(6, ISecureRandom::CHAR_DIGITS); |
90 | 90 | $gateway = $this->gatewayFactory->getGateway($gatewayName); |
91 | 91 | try { |
92 | - if ($gatewayName == "telegram"){ |
|
92 | + if ($gatewayName == "telegram") { |
|
93 | 93 | $verificationNumber = "`$verificationNumber`"; |
94 | 94 | } |
95 | 95 | $gateway->send($user, $identifier, "$verificationNumber is your Nextcloud verification code."); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | protected $l10n; |
66 | 66 | |
67 | 67 | private function getSessionKey() { |
68 | - return "twofactor_gateway_" . $this->gatewayName . "_secret"; |
|
68 | + return "twofactor_gateway_".$this->gatewayName."_secret"; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function __construct(string $gatewayId, |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $secret = $this->getSecret(); |
108 | 108 | |
109 | 109 | try { |
110 | - if ($this->gatewayName == "telegram"){ |
|
110 | + if ($this->gatewayName == "telegram") { |
|
111 | 111 | $secret = "`$secret`"; |
112 | 112 | } |
113 | 113 | $identifier = $this->stateStorage->get($user, $this->gatewayName)->getIdentifier(); |