Fix minor typo in captcha description, release v0.3.1

This commit is contained in:
Timothée Floure 2021-02-03 13:56:00 +01:00
parent 2250c87c6f
commit 42d44160b5
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
5 changed files with 26 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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 />

View File

@ -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 />

View File

@ -4,7 +4,7 @@ defmodule RecycledCloud.MixProject do
def project do
[
app: :recycledcloud,
version: "0.3.0",
version: "0.3.1",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),