Skip to content

Instantly share code, notes, and snippets.

View josemotanet's full-sized avatar

José Mota josemotanet

View GitHub Profile
export const States = {
INITIAL: { id: '1-initial', next: 'CONNECTED' },
CONNECTED: { id: '2-connected', next: 'END' },
END: { id: '3-end' }
};
export default class HelpStateManager {
constructor() {
this.currentState = States.INITIAL;
}
Started POST "/users/sign_in" for ::1 at 2016-05-13 12:53:53 +0100
Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"U8kDm/7mtjD7SiMAW0Mim95PyqnGSn/TROVdCfkkOEM2C8gSS8MOuOhDSe6yS+rXR4YBdtbXXNo26zr7zc7g6w==", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
Can't verify CSRF token authenticity
Completed 422 Unprocessable Entity in 0ms
ActionController::InvalidAuthenticityToken - ActionController::InvalidAuthenticityToken:
actionpack (4.2.6) lib/action_controller/metal/request_forgery_protection.rb:181:in `handle_unverified_request'
actionpack (4.2.6) lib/action_controller/metal/request_forgery_protection.rb:209:in `handle_unverified_request'
actionpack (4.2.6) lib/action_controller/metal/request_forgery_protection.rb:204:in `verify_authenticity_token'