add sale reason in seed
This commit is contained in:
@@ -10,7 +10,6 @@ class HomeController < ApplicationController
|
||||
@login_form.emp_id = params[:login_form][:emp_id]
|
||||
@login_form.password = params[:login_form][:password]
|
||||
@employee = Employee.login(@login_form.emp_id, @login_form.password)
|
||||
<<<<<<< HEAD
|
||||
|
||||
if @employee != nil
|
||||
if @employee.role == "administrator"
|
||||
@@ -25,17 +24,6 @@ class HomeController < ApplicationController
|
||||
else
|
||||
redirect_to origami_root_path, :notice => "Username and Password dosn't match!"
|
||||
end
|
||||
=======
|
||||
if @employee.role == "administrator"
|
||||
session[:session_token] = @employee.token_session
|
||||
redirect_to dashboard_path
|
||||
elsif @employee.role == "cashier"
|
||||
session[:session_token] = @employee.token_session
|
||||
redirect_to origami_root_path
|
||||
else
|
||||
render :index
|
||||
end
|
||||
>>>>>>> 7dffd668eaee6ab82621fd4bae150525ded79df1
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user