Fix minor typo in captcha description, release v0.3.1
This commit is contained in:
parent
2250c87c6f
commit
42d44160b5
|
@ -1,3 +1,8 @@
|
|||
# management 0.3.1, 2021-02-03
|
||||
|
||||
* Allow forgery on the support request form
|
||||
* Fix minor typo in captcha description
|
||||
|
||||
# management 0.3.0, 2021-02-03
|
||||
|
||||
* Add minimal captcha module
|
||||
|
|
|
@ -12,6 +12,14 @@ defmodule RecycledCloudWeb.Router do
|
|||
plug :fetch_current_user
|
||||
end
|
||||
|
||||
pipeline :browser_with_forgery do
|
||||
plug :accepts, ["html"]
|
||||
plug :fetch_session
|
||||
plug :fetch_flash
|
||||
plug :put_secure_browser_headers
|
||||
plug :fetch_current_user
|
||||
end
|
||||
|
||||
pipeline :api do
|
||||
plug :accepts, ["json"]
|
||||
end
|
||||
|
@ -24,6 +32,15 @@ defmodule RecycledCloudWeb.Router do
|
|||
pipe_through :browser
|
||||
|
||||
get "/", PageController, :index
|
||||
get "/support/new", SupportController, :new
|
||||
end
|
||||
|
||||
scope "/", RecycledCloudWeb do
|
||||
pipe_through :browser_with_forgery
|
||||
|
||||
# The static recycled.cloud website POST this endpoint, which basically is
|
||||
# Cross-Site Request Forgery (hence browser_with_forgery pipeline).
|
||||
post "/support/new", SupportController, :create
|
||||
end
|
||||
|
||||
scope "/", RecycledCloudWeb do
|
||||
|
@ -45,9 +62,6 @@ defmodule RecycledCloudWeb.Router do
|
|||
post "/users/reset_password", UserResetPasswordController, :create
|
||||
get "/users/reset_password/:token", UserResetPasswordController, :edit
|
||||
put "/users/reset_password/:token", UserResetPasswordController, :update
|
||||
|
||||
get "/support/new", SupportController, :new
|
||||
post "/support/new", SupportController, :create
|
||||
end
|
||||
|
||||
scope "/", RecycledCloudWeb do
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
<br />
|
||||
|
||||
<p>
|
||||
Can you answer the following expression to confirm you are not basic
|
||||
robot?
|
||||
Can you answer the following expression to confirm you are
|
||||
not a basic robot?
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<br />
|
||||
|
||||
<p>
|
||||
Can you answer the following expression to confirm you are not basic robot?
|
||||
Can you answer the following expression to confirm you are not a basic robot?
|
||||
|
||||
<br />
|
||||
|
||||
|
|
Loading…
Reference in New Issue