Skip to content

Commit 5b87c62

Browse files
committed
Fix #814 Can't verify CSRF token authenticity error in login page in Windows.
1 parent 1e3aa9e commit 5b87c62

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/controllers/account_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Devise User Controller
22
class AccountController < Devise::RegistrationsController
3-
protect_from_forgery
4-
53
def edit
64
@user = current_user
75
end

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ApplicationController
22
class ApplicationController < ActionController::Base
3-
protect_from_forgery with: :exception
3+
protect_from_forgery prepend: true
44
helper_method :unread_notify_count
55
helper_method :turbolinks_app?, :turbolinks_ios?, :turbolinks_app_version
66

0 commit comments

Comments
 (0)