pull/6180/head
Jens Ulferts 7 years ago
parent 21ce3472bc
commit 410479105d
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 10
      app/controllers/concerns/authentication_stages.rb

@ -52,14 +52,14 @@ module Concerns
def init_authentication_stages(after_activation:)
stages = OpenProject::Authentication::Stage
.stages
.select { |s| s.active? }
.select { |s| s.run_after_activation? || !after_activation }
.stages
.select(&:active?)
.select { |s| s.run_after_activation? || !after_activation }
session[:authentication_stages] = stages.map(&:identifier)
session[:stage_secrets] = session[:authentication_stages]
.map { |ident| [ident, stage_secret(ident)] }
.to_h
.map { |ident| [ident, stage_secret(ident)] }
.to_h
session[:back_url] = back_url
stages

Loading…
Cancel
Save