southbridgeio / redmine_2fa

Two-factor (sms/telegram) authentication for Redmine
https://southbridge.io
MIT License
42 stars 17 forks source link

RQRCode::QRCodeRunTimeError (code length overflow. (1004>976). (Try a larger size!)): #54

Closed akhilesharora closed 6 years ago

akhilesharora commented 6 years ago

Fails for user on prod after migration sometimes. If I check the Ignore2FA then it works else doesn't.

Processing by AccountController#login as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"5OrvYz8T87xZgpT57Kpt2MxhSL2UgRgCvxAUsrvR8T+Ym7AH1Kdu5/AB8g9f8JDMu6fBCT94kI2wLLW3oGPzEw==", "username"=>"admin", "password"=>"[FILTERED]", "login"=>"Login"}
  Current user: anonymous
Completed 500 Internal Server Error in 13ms (ActiveRecord: 8.0ms)

RQRCode::QRCodeRunTimeError (code length overflow. (1004>976). (Try a larger size!)):
  plugins/redmine_2fa/lib/redmine_2fa/patches/account_controller_patch/second_authentication_init.rb:11:in `new'
  plugins/redmine_2fa/lib/redmine_2fa/patches/account_controller_patch/second_authentication_init.rb:11:in `password_authentication'
  plugins/redmine_2fa/lib/redmine_2fa/patches/account_controller_patch/second_authentication_prepare.rb:16:in `password_authentication'
  app/controllers/account_controller.rb:205:in `authenticate_user'
  app/controllers/account_controller.rb:38:in `login'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
vladislav-yashin commented 6 years ago

Fixed in #55 Gonna release new version on monday.