After "mix phx.gen.auth Admins Admin admins" with added working register and login path.
This commit is contained in:
@ -7,6 +7,19 @@
|
||||
# General application configuration
|
||||
import Config
|
||||
|
||||
config :beet_round_server, :scopes,
|
||||
admin: [
|
||||
default: false,
|
||||
module: BeetRoundServer.Admins.Scope,
|
||||
assign_key: :current_scope,
|
||||
access_path: [:admin, :id],
|
||||
schema_key: :admin_id,
|
||||
schema_type: :binary_id,
|
||||
schema_table: :admins,
|
||||
test_data_fixture: BeetRoundServer.AdminsFixtures,
|
||||
test_setup_helper: :register_and_log_in_admin
|
||||
]
|
||||
|
||||
config :beet_round_server, :scopes,
|
||||
user: [
|
||||
default: true,
|
||||
|
||||
Reference in New Issue
Block a user