This commit is contained in:
parent
eadf90b5fc
commit
f1d0526209
19 changed files with 547 additions and 15 deletions
|
|
@ -80,7 +80,7 @@ defmodule MvWeb.Plugs.CheckPagePermission do
|
|||
Used by LiveView hook to skip redirect on sign-in etc.
|
||||
"""
|
||||
def public_path?(path) when is_binary(path) do
|
||||
path in ["/register", "/reset", "/set_locale", "/sign-in", "/sign-out"] or
|
||||
path in ["/register", "/reset", "/set_locale", "/sign-in", "/sign-out", "/join"] or
|
||||
String.starts_with?(path, "/auth") or
|
||||
String.starts_with?(path, "/confirm") or
|
||||
String.starts_with?(path, "/password-reset")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue