Error 500 when verifying TFA Code in 8.0.0
Originally I could not get into Gitlab using my TFA code from Google Authenticator (Authy). Could on the latest 7.14 build. I had to log in with an emergency code. Got in, disabled TFA, trying to re-enable and getting this error after entering the 6 digit code to confirm.
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/profile/two_factor_auth" for x.x.x.x at 2015-09-22 13:49:28 -0700
Processing by Profiles::TwoFactorAuthsController#create as HTML
Parameters: {"utf8"=>"Γ£ô", "authenticity_token"=>"[FILTERED]", "pin_code"=>"[FILTERED]"}
Completed 500 Internal Server Error in 575ms (ActiveRecord: 3.8ms)
ActionView::Template::Error (undefined method `scan' for nil:NilClass):
28: %dd= current_user.email
29: %dl
30: %dt Key
31: %dd= current_user.otp_secret.scan(/.{4}/).join(' ')
32: %dl
33: %dt Time based
34: %dd Yes
app/views/profiles/two_factor_auths/new.html.haml:31:in `block in _app_views_profiles_two_factor_auths_new_html_haml__3078508626129384766_120210280'
app/views/profiles/two_factor_auths/new.html.haml:12:in `_app_views_profiles_two_factor_auths_new_html_haml__3078508626129384766_120210280'
app/controllers/profiles/two_factor_auths_controller.rb:22:in `create'