Ignore:
Timestamp:
May 16, 2008, 10:42:38 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

login window created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/rails/cancerehr/app/controllers/login_controller.rb

    r57 r59  
    44    @user = User.new(params[:user])
    55    if request.post? and @user.save
    6       flash.now[:notice] = "Created user:#{@user.name}."
     6      flash.now[:notice] = "User:#{@user.name} created."
    77      @user = User.new
    88    end
     
    1212    session[:user_id] = nil
    1313    if request.post?
    14       user = User.authenticate(params[:name], params[:passord])
     14      user = User.authenticate(params[:name], params[:password])
    1515      if user
    1616        session[:user_id] = user.id
     
    2626
    2727  def index
     28
    2829  end
    2930
Note: See TracChangeset for help on using the changeset viewer.