feat(user): use gen auth for users
This commit is contained in:
parent
fbb65e77c0
commit
c1385df0f9
36 changed files with 3256 additions and 129 deletions
|
@ -7,6 +7,19 @@
|
|||
# General application configuration
|
||||
import Config
|
||||
|
||||
config :learning_phoenix, :scopes,
|
||||
user: [
|
||||
default: true,
|
||||
module: LearningPhoenix.Accounts.Scope,
|
||||
assign_key: :current_scope,
|
||||
access_path: [:user, :id],
|
||||
schema_key: :user_id,
|
||||
schema_type: :id,
|
||||
schema_table: :users,
|
||||
test_data_fixture: LearningPhoenix.AccountsFixtures,
|
||||
test_setup_helper: :register_and_log_in_user
|
||||
]
|
||||
|
||||
config :learning_phoenix,
|
||||
ecto_repos: [LearningPhoenix.Repo],
|
||||
generators: [timestamp_type: :utc_datetime]
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
import Config
|
||||
|
||||
# Only in tests, remove the complexity from the password hashing algorithm
|
||||
config :bcrypt_elixir, :log_rounds, 1
|
||||
|
||||
# Configure your database
|
||||
#
|
||||
# The MIX_TEST_PARTITION environment variable can be used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue