mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
9 lines
242 B
Ruby
9 lines
242 B
Ruby
class SessionsController < Devise::SessionsController
|
|
#before_action :set_csrf_headers, only: [:create, :destroy]
|
|
|
|
protected
|
|
def set_csrf_headers
|
|
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
|
|
end
|
|
end
|