fixed refactoring (use after_activation again)

pull/6180/head
Markus Kahl 7 years ago
parent 67e1ea1dae
commit 0ab1c0e5e7
  1. 4
      app/controllers/concerns/authentication_stages.rb

@ -51,7 +51,7 @@ module Concerns
end
def init_authentication_stages(after_activation:)
stages = active_stages
stages = active_stages after_activation
session[:authentication_stages] = stages.map(&:identifier)
session[:stage_secrets] = new_stage_secrets
@ -60,7 +60,7 @@ module Concerns
stages
end
def active_stages
def active_stages(after_activation)
OpenProject::Authentication::Stage
.stages
.select(&:active?)

Loading…
Cancel
Save