Sha256: 16da1bf55cec5caea90a8d15e5148354afaf38366a0886047b9b7c45923ef698

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

module Sessions::ControllerBase
  extend ActiveSupport::Concern

  include do
    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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet_train-1.0.6 app/controllers/concerns/sessions/controller_base.rb