add forgot password form url to accessible signed out urls
This commit is contained in:
parent
96ed2bcd64
commit
662f11f689
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ private
|
||||||
|
|
||||||
path = request.env["PATH_INFO"]
|
path = request.env["PATH_INFO"]
|
||||||
|
|
||||||
accessible_urls = ["/", new_user_registration_path, new_user_session_path, user_registration_path, new_user_password_path, edit_user_password_path]
|
accessible_urls = ["/", new_user_registration_path, new_user_session_path, user_registration_path, user_password_path, new_user_password_path, edit_user_password_path]
|
||||||
|
|
||||||
unless accessible_urls.include?(path)
|
unless accessible_urls.include?(path)
|
||||||
store_location_for(:user, path) and redirect_to root_url, notice: "You must be logged in."
|
store_location_for(:user, path) and redirect_to root_url, notice: "You must be logged in."
|
||||||
|
|
Loading…
Reference in a new issue