Spree allows you to use a different model for the admin panel than the storefront (that’s the default since Spree 5.2). Here you can find how to customize the admin panel authentication to use a different model. Let’s assume you have an existingDocumentation Index
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
AdminUser model in your application and you’re using Devise for authentication.
In config/initializers/spree.rb file, add the following line:
AdminUser model for the admin panel. You will also need to add the following line in that model file:
config/initializers/routes.rb file, you will need define devise routes for the 2nd model:
lib/spree/authentication_helpers.rb file, please replace the following lines:


