User flow updates

This commit is contained in:
2026-02-10 11:38:56 -05:00
parent 63b19cb78a
commit e624ec2d0b
38 changed files with 242 additions and 214 deletions
@@ -1,17 +0,0 @@
class Suppliers::SessionsController < Devise::SessionsController
respond_to :json
def create
# taken from super except the respond_with
self.resource = warden.authenticate!(auth_options)
set_flash_message!(:notice, :signed_in)
sign_in(resource_name, resource)
yield resource if block_given?
render json: {employee_id: current_employee.id, auth_token: current_employee.authentication_token}
end
def destroy
session[:supplier_id] = nil
super
end
end