mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Force new users to fill out their name before trying to register
This commit is contained in:
parent
40a283a244
commit
59fe29c1a4
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ class ConferenceRegistrationController < ApplicationController
|
|||
@conference = Conference.find_all_by_short_title(params[:id]).first
|
||||
@person = current_user.person
|
||||
if @person.first_name.blank? || @person.last_name.blank?
|
||||
redirect_to(edit_user_registration, :alert => "Please fill in your first and last name before registering.")
|
||||
redirect_to(edit_user_registration_path, :alert => "Please fill in your first and last name before registering.")
|
||||
return
|
||||
end
|
||||
@registration = @person.registrations.where(:conference_id => @conference.id).first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue