Removed forgery protection from email confirmation page
This commit is contained in:
parent
83986fe51c
commit
553496d51d
@ -6,7 +6,7 @@ end
|
|||||||
class ApplicationController < LinguaFrancaApplicationController
|
class ApplicationController < LinguaFrancaApplicationController
|
||||||
# Prevent CSRF attacks by raising an exception.
|
# Prevent CSRF attacks by raising an exception.
|
||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception, :except => [:do_confirm]
|
||||||
|
|
||||||
before_filter :capture_page_info
|
before_filter :capture_page_info
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
= columns(medium: 12) do
|
= columns(medium: 12) do
|
||||||
%h2=_'articles.permission_denied.headings.confirm_email','Please confirm your email address'
|
%h2=_'articles.permission_denied.headings.confirm_email','Please confirm your email address'
|
||||||
= columns(medium: 6, large: 5) do
|
= columns(medium: 6, large: 5) do
|
||||||
= form_tag :do_confirm do
|
= form_tag :do_confirm, :authenticity_token => false do
|
||||||
.email-field.input-field
|
.email-field.input-field
|
||||||
= email_field_tag :email, nil, required: true
|
= email_field_tag :email, nil, required: true
|
||||||
= label_tag :email
|
= label_tag :email
|
||||||
|
Loading…
x
Reference in New Issue
Block a user