mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
fix double send on registration
This commit is contained in:
parent
e159c01bef
commit
63c89d2faf
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
defmodule PhilomenaWeb.CompromisedPasswordCheckPlug do
|
||||
import Phoenix.Controller
|
||||
import Plug.Conn
|
||||
|
||||
def init(opts), do: opts
|
||||
|
||||
|
@ -16,6 +17,7 @@ defmodule PhilomenaWeb.CompromisedPasswordCheckPlug do
|
|||
"We've detected that the password you entered has been compromised during a data breach of another website. Please choose a different password."
|
||||
)
|
||||
|> redirect(external: conn.assigns.referrer)
|
||||
|> halt()
|
||||
|
||||
false ->
|
||||
conn
|
||||
|
|
Loading…
Reference in a new issue