|
@@ -188,7 +188,7 @@ discard block |
|
|
block discarded – undo |
|
188
|
188
|
$secret = $this->otp->generateSecret(); |
|
189
|
189
|
$QR = $this->otp_helper->generateKeyURI('totp', $secret, generate_board_url()); |
|
190
|
190
|
$this->template->assign_vars(array( |
|
191
|
|
- 'TFA_QR_CODE' => 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=' . $QR, |
|
|
191
|
+ 'TFA_QR_CODE' => 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl='.$QR, |
|
192
|
192
|
'TFA_SECRET' => $secret, |
|
193
|
193
|
'TFA__ADD_OTP_KEY_EXPLAIN' => $this->user->lang('TFA_ADD_OTP_KEY_EXPLAIN', $secret), |
|
194
|
194
|
'S_HIDDEN_FIELDS' => build_hidden_fields(array( |
|
@@ -208,7 +208,7 @@ discard block |
|
|
block discarded – undo |
|
208
|
208
|
public function register() |
|
209
|
209
|
{ |
|
210
|
210
|
$secret = $this->request->variable('secret', ''); |
|
211
|
|
- $otp = $this->request->variable('otp', ''); |
|
|
211
|
+ $otp = $this->request->variable('otp', ''); |
|
212
|
212
|
|
|
213
|
213
|
if (!$this->otp->checkTOTP($secret, $otp)) |
|
214
|
214
|
{ |
Please login to merge, or discard this patch.