app/controllers/users_controller.rb
# Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
def create
        logout_keeping_session!
        @user = User.new(params[:user])
        success = @user && @user.save
        if success && @user.errors.empty?
            redirect_back_or_default('/')
            flash[:notice] = "Thanks for signing up!  We're sending you an email with your activation code."
        else
            flash[:error]  = "We couldn't set up that account, sorry.  Please try again, or contact an admin (link is above)."
            render :action => 'new'
        end
    end
def create logout_keeping_session! @user = User . new ( params [ :user ] ) success = @user && @user . save if success && @user . errors . empty? redirect_back_or_default ( '/' ) flash [ :notice ] = "Thanks for signing up!  We're sending you an email with your activation code." else flash [ :error ] = "We couldn't set up that account, sorry.  Please try again, or contact an admin (link is above)." render :action => 'new' end end
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead