diff --git a/lib/pow_captcha/captcha.ex b/lib/pow_captcha/captcha.ex new file mode 100644 index 00000000..f0c99bf5 --- /dev/null +++ b/lib/pow_captcha/captcha.ex @@ -0,0 +1,7 @@ +defmodule PowCaptcha do + @moduledoc false + use Pow.Extension.Base + + @impl true + def phoenix_controller_callbacks?(), do: true +end \ No newline at end of file diff --git a/lib/pow_lockout/lockout.ex b/lib/pow_lockout/lockout.ex new file mode 100644 index 00000000..aa1df6af --- /dev/null +++ b/lib/pow_lockout/lockout.ex @@ -0,0 +1,16 @@ +defmodule PowLockout do + @moduledoc false + use Pow.Extension.Base + + @impl true + def ecto_schema?(), do: true + + @impl true + def phoenix_controller_callbacks?(), do: true + + @impl true + def phoenix_router?(), do: true + + @impl true + def phoenix_messages?(), do: true +end \ No newline at end of file diff --git a/mix.exs b/mix.exs index b2b269fd..db23e91a 100644 --- a/mix.exs +++ b/mix.exs @@ -45,7 +45,7 @@ defmodule Philomena.MixProject do {:plug_cowboy, "~> 2.0"}, {:phoenix_slime, "~> 0.12.0"}, {:ecto_network, "~> 1.1"}, - {:pow, github: "danschultzer/pow", ref: "persistent-session-metadata", override: true}, + {:pow, "~> 1.0.15"}, {:bcrypt_elixir, "~> 2.0"}, {:pot, "~> 0.10.1"}, {:secure_compare, "~> 0.1.0"}, diff --git a/mix.lock b/mix.lock index 10ea6b43..ad36e1f3 100644 --- a/mix.lock +++ b/mix.lock @@ -45,7 +45,7 @@ "plug_crypto": {:hex, :plug_crypto, "1.0.0", "18e49317d3fa343f24620ed22795ec29d4a5e602d52d1513ccea0b07d8ea7d4d", [:mix], [], "hexpm"}, "postgrex": {:hex, :postgrex, "0.15.1", "23ce3417de70f4c0e9e7419ad85bdabcc6860a6925fe2c6f3b1b5b1e8e47bf2f", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"}, "pot": {:hex, :pot, "0.10.1", "af7dc220fd45478719b821fb4c1222975132516478483213507f95026298d8ab", [:rebar3], [], "hexpm"}, - "pow": {:git, "https://github.com/danschultzer/pow.git", "d68cde93f2765d946bd5c8524d8bc501f2e851f6", [ref: "persistent-session-metadata"]}, + "pow": {:hex, :pow, "1.0.15", "9267b5c75df2d59968585c042e2a0ec6217b1959d3afd629817461f0a20e903c", [:mix], [{:ecto, "~> 2.2 or ~> 3.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.3.0 or ~> 1.4.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, ">= 2.0.0 and <= 3.0.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:plug, ">= 1.5.0 and < 2.0.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm"}, "qrcode": {:hex, :qrcode, "0.1.5", "551271830515c150f34568345b060c625deb0e6691db2a01b0a6de3aafc93886", [:mix], [], "hexpm"}, "ranch": {:hex, :ranch, "1.7.1", "6b1fab51b49196860b733a49c07604465a47bdb78aa10c1c16a3d199f7f8c881", [:rebar3], [], "hexpm"}, "redix": {:hex, :redix, "0.10.2", "a9eabf47898aa878650df36194aeb63966d74f5bd69d9caa37babb32dbb93c5d", [:mix], [{:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"},