replace coherence with guardian
This commit is contained in:
@@ -26,21 +26,6 @@ config :logger, :console,
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{Mix.env}.exs"
|
||||
|
||||
# %% Coherence Configuration %% Don't remove this line
|
||||
config :coherence,
|
||||
user_schema: Eventos.Accounts.User,
|
||||
repo: Eventos.Repo,
|
||||
module: Eventos,
|
||||
web_module: EventosWeb,
|
||||
router: EventosWeb.Router,
|
||||
messages_backend: EventosWeb.Coherence.Messages,
|
||||
logged_out_url: "/",
|
||||
user_active_field: true,
|
||||
email_from_name: "Your Name",
|
||||
email_from_email: "yourname@example.com",
|
||||
opts: [:invitable, :confirmable, :rememberable, :authenticatable, :recoverable, :lockable, :trackable, :unlockable_with_token, :registerable]
|
||||
|
||||
config :coherence, EventosWeb.Coherence.Mailer,
|
||||
adapter: Swoosh.Adapters.Sendgrid,
|
||||
api_key: "your api key here"
|
||||
# %% End Coherence Configuration %%
|
||||
config :eventos, EventosWeb.Guardian,
|
||||
issuer: "Eventos",
|
||||
secret_key: "ty0WM7YBE3ojvxoUQxo8AERrNpfbXnIJ82ovkPdqbUFw31T5LcK8wGjaOiReVQjo"
|
||||
@@ -12,8 +12,8 @@ config :logger, level: :warn
|
||||
# Configure your database
|
||||
config :eventos, Eventos.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
username: "postgres",
|
||||
password: "postgres",
|
||||
username: "elixir",
|
||||
password: "elixir",
|
||||
database: "eventos_test",
|
||||
hostname: "localhost",
|
||||
pool: Ecto.Adapters.SQL.Sandbox
|
||||
|
||||
Reference in New Issue
Block a user