feat(user): use gen auth for users

This commit is contained in:
Anhgelus Morhtuuzh 2025-08-14 20:49:11 +02:00
parent fbb65e77c0
commit c1385df0f9
Signed by: anhgelus
GPG key ID: 617773CACE89052C
36 changed files with 3256 additions and 129 deletions

View file

@ -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]