@@ -137,8 +137,7 @@ |
||
137 | 137 | if (!$user->check2FAcode($code2fa)) { |
138 | 138 | throw new Exception(I18N::translate('2FA code does not match. Please try again.')); |
139 | 139 | } |
140 | - } |
|
141 | - else { |
|
140 | + } else { |
|
142 | 141 | throw new Exception(I18N::translate('2FA code must be entered as you have 2FA authentication enabled. Please try again.')); |
143 | 142 | } |
144 | 143 | } |