Changeset 475

Show
Ignore:
Timestamp:
03/10/07 12:20:48
Author:
bsag
Message:

The changes to login_controller in [471] as a response to #468 stopped signup working for the initial (admin) user. I've patched again to allow the first signup, and subsquent signups by the admin through the interface, but block passing parameters to create in the URL, thus bypassing signup.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/tracks-1.043/app/controllers/login_controller.rb

    r471 r475  
    5757 
    5858  def create 
    59     get_admin_user  
    60     return if !User.find_all.empty? or session['user_id'] != @admin.id 
     59    unless User.find(:all).empty? 
     60      get_admin_user  
     61      return if session['user_id'] != @admin.id 
     62    end     
    6163    user = User.new(@params['user']) 
    6264    unless user.valid?