app/controllers/lines/sessions_controller.rb in lines-engine-0.1.12 vs app/controllers/lines/sessions_controller.rb in lines-engine-0.1.13

- old
+ new

@@ -12,10 +12,10 @@ def new end # Authenticate user and create a new session. def create - user = User.find_by(email: params[:email]) + user = Lines::User.find_by(email: params[:email]) if user && user.authenticate(params[:password]) session[:user_id] = user.id redirect_to admin_root_url, notice: "Logged in!" else flash.now.alert = "Email or password is invalid" \ No newline at end of file