Sha256: 5efbf24d1ee128c2ffab08ebbd6b9270629d4c46ee42857dc4407a2373cbca28
Contents?: true
Size: 541 Bytes
Versions: 47
Compression:
Stored size: 541 Bytes
Contents
module Sessions::ControllerBase extend ActiveSupport::Concern included do # TODO I'm not sure why the sign-in page started throwing a `ActionController::InvalidAuthenticityToken`. I'm doing # this as a temporary workaround, but this shouldn't be here long-term. skip_before_action :verify_authenticity_token, only: [:create] end def pre_otp if (@email = params["user"]["email"].downcase.strip.presence) @user = User.find_by(email: @email) end respond_to do |format| format.js end end end
Version data entries
47 entries across 47 versions & 1 rubygems