Skip to content

Commit

Permalink
Fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Nov 2, 2020
1 parent 04af792 commit bf31a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/QrCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function show(TwoFAccount $twofaccount)
public function decode(Request $request)
{

if(Options::get('useBasicQrcodeReader')) {
if( Options::get('useBasicQrcodeReader') || $request->inputFormat === 'fileUpload') {

// input validation
$this->validate($request, [
Expand Down
1 change: 1 addition & 0 deletions resources/js/views/twofaccounts/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
let imgdata = new FormData();
imgdata.append('qrcode', this.$refs.qrcodeInput.files[0]);
imgdata.append('inputFormat', 'fileUpload');
const { data } = await this.form.upload('/api/qrcode/decode', imgdata)
Expand Down

0 comments on commit bf31a9b

Please sign in to comment.