Closed pechenkin655 closed 3 years ago
Using Nginx 1.10.3 Phusion Passenger 5.3.7 ruby 2.3.8p459 Rails 4.2.8
Steps:
In plugins config leave only Google authenticator Logoff Try to login - pairing code will apper Scan code with Google authenticator app and write code to text field Press "Next;" button
Result: Error page and this in apache log files:
Started POST "/redmine_2fa/otp_code/confirm" for 192.168.0.3 at 2018-11-14 21:49:23 +0800 Processing by AccountController#confirm_otp as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"uTQLUhNumNPpIGVEC4GiEOY6ewpKQNC7vDqN2BqBknPrdtX790Iv2XA72PvOCvFWODO6LESDImSs7VNagIUbdA==", "otp_code"=>"578370", "protocol"=>"google_auth", "login"=>"Next;"} Current user: anonymous Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.1ms)
NoMethodError (undefined method verify_with_drift' for #<ROTP::TOTP:0x00007f82dad61208>): plugins/redmine_2fa/lib/redmine_2fa/patches/account_controller_patch/confirm_methods.rb:29:in
confirm_otp'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
update active_model_otp version in Gemfile fixes this issue
gem 'active_model_otp', :git => 'https://github.com/heapsource/active_model_otp.git'
Using apache 2.4.18 Phusion Passenger 5.3.5 ruby 2.3.7p456 Rails 4.2.8
Steps:
Result: Error page and this in apache log files: