Initial work on questions and payment and fix for confirmation email
This commit is contained in:
@@ -235,7 +235,7 @@ class ApplicationController < LinguaFrancaApplicationController
|
||||
end
|
||||
expiry ||= (Time.now + 12.hours)
|
||||
session[:confirm_uid] = user.id
|
||||
UserMailer.send_mail :email_confirmation do
|
||||
UserMailer.send_mail! :email_confirmation do
|
||||
EmailConfirmation.create(user_id: user.id, expiry: expiry, url: url)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2109,7 +2109,15 @@ class ConferencesController < ApplicationController
|
||||
]
|
||||
|
||||
steps -= [:questions, :payment] unless status == :open
|
||||
steps -= [:hosting] unless @registration.present? && view_context.same_city?(@registration.city, @conference.location)
|
||||
if @registration.present?
|
||||
if view_context.same_city?(@registration.city, @conference.location)
|
||||
steps -= [:questions]
|
||||
else
|
||||
steps -= [:hosting]
|
||||
end
|
||||
else
|
||||
steps -= [:hosting, :questions]
|
||||
end
|
||||
|
||||
steps -= [:administration] unless @registration.present? && @conference.host?(current_user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user