@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | SessionAlert::success('Enabled YubiKey OTP.'); |
82 | 82 | |
83 | 83 | $scratchProvider = new ScratchTokenCredentialProvider($database, $this->getSiteConfiguration()); |
84 | - if($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
84 | + if ($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
85 | 85 | $scratchProvider->setCredential($currentUser, 2, null); |
86 | 86 | $tokens = $scratchProvider->getTokens(); |
87 | 87 | $this->assign('tokens', $tokens); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | SessionAlert::success('Enabled TOTP.'); |
182 | 182 | |
183 | 183 | $scratchProvider = new ScratchTokenCredentialProvider($database, $this->getSiteConfiguration()); |
184 | - if($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
184 | + if ($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
185 | 185 | $scratchProvider->setCredential($currentUser, 2, null); |
186 | 186 | $tokens = $scratchProvider->getTokens(); |
187 | 187 | $this->assign('tokens', $tokens); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | |
262 | 262 | list($data, $reqs) = $otpCredentialProvider->getRegistrationData(); |
263 | 263 | |
264 | - $u2fRequest =json_encode($data); |
|
264 | + $u2fRequest = json_encode($data); |
|
265 | 265 | $u2fSigns = json_encode($reqs); |
266 | 266 | |
267 | 267 | $this->addJs('/vendor/yubico/u2flib-server/examples/assets/u2f-api.js'); |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | SessionAlert::success('Enabled U2F.'); |
311 | 311 | |
312 | 312 | $scratchProvider = new ScratchTokenCredentialProvider($database, $this->getSiteConfiguration()); |
313 | - if($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
313 | + if ($scratchProvider->getRemaining($currentUser->getId()) < 3) { |
|
314 | 314 | $scratchProvider->setCredential($currentUser, 2, null); |
315 | 315 | $tokens = $scratchProvider->getTokens(); |
316 | 316 | $this->assign('tokens', $tokens); |
@@ -214,7 +214,8 @@ |
||
214 | 214 | 'jobId' => $job->getId(), |
215 | 215 | 'jobDesc' => JobQueue::getTaskDescriptions()[$job->getTask()], |
216 | 216 | ); |
217 | - } else { |
|
217 | + } |
|
218 | + else { |
|
218 | 219 | $requestLogs[] = array( |
219 | 220 | 'type' => 'log', |
220 | 221 | 'security' => 'user', |