@@ -67,7 +67,7 @@ |
||
67 | 67 | $language = Validator::parsedBody($request)->string('language'); |
68 | 68 | $real_name = Validator::parsedBody($request)->string('real_name'); |
69 | 69 | $password = Validator::parsedBody($request)->string('password'); |
70 | - $secret = Validator::parsedBody($request)->string('secret'); |
|
70 | + $secret = Validator::parsedBody($request)->string('secret'); |
|
71 | 71 | $time_zone = Validator::parsedBody($request)->string('timezone'); |
72 | 72 | $user_name = Validator::parsedBody($request)->string('user_name'); |
73 | 73 | $visible_online = Validator::parsedBody($request)->boolean('visible-online', false); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $default_url = route(HomePage::class); |
70 | 70 | $username = Validator::parsedBody($request)->string('username'); |
71 | 71 | $password = Validator::parsedBody($request)->string('password'); |
72 | - $code2fa = Validator::parsedBody($request)->string('code2fa'); |
|
72 | + $code2fa = Validator::parsedBody($request)->string('code2fa'); |
|
73 | 73 | $url = Validator::parsedBody($request)->isLocalUrl()->string('url', $default_url); |
74 | 74 | |
75 | 75 | try { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | if ($user->getPreference(UserInterface::PREF_IS_STATUS_MFA) !== '') { |
135 | 135 | # covers scenario where 2fa not enabled by user |
136 | - if($code2fa != '') { |
|
136 | + if ($code2fa != '') { |
|
137 | 137 | if (!$user->check2FAcode($code2fa)) { |
138 | 138 | throw new Exception(I18N::translate('2FA code does not match. Please try again.')); |
139 | 139 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $real_name = Validator::parsedBody($request)->string('real_name'); |
76 | 76 | $email = Validator::parsedBody($request)->string('email'); |
77 | 77 | $password = Validator::parsedBody($request)->string('password'); |
78 | - $secret = Validator::parsedBody($request)->string('secret'); |
|
78 | + $secret = Validator::parsedBody($request)->string('secret'); |
|
79 | 79 | $theme = Validator::parsedBody($request)->string('theme'); |
80 | 80 | $language = Validator::parsedBody($request)->string('language'); |
81 | 81 | $timezone = Validator::parsedBody($request)->string('timezone'); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $canadmin = Validator::parsedBody($request)->boolean('canadmin', false); |
86 | 86 | $visible_online = Validator::parsedBody($request)->boolean('visible-online', false); |
87 | 87 | $verified = Validator::parsedBody($request)->boolean('verified', false); |
88 | - $status_mfa = Validator::parsedBody($request)->boolean('status-mfa', false); |
|
88 | + $status_mfa = Validator::parsedBody($request)->boolean('status-mfa', false); |
|
89 | 89 | $approved = Validator::parsedBody($request)->boolean('approved', false); |
90 | 90 | |
91 | 91 | $edit_user = $this->user_service->find($user_id); |
@@ -291,7 +291,7 @@ |
||
291 | 291 | ->where('user_id', '=', $this->id()) |
292 | 292 | ->value('secret'); |
293 | 293 | $google2fa = new Google2FA; |
294 | - if($google2fa->verifyKey($secret, $code2fa)) { |
|
294 | + if ($google2fa->verifyKey($secret, $code2fa)) { |
|
295 | 295 | return true; |
296 | 296 | } |
297 | 297 | return false; |