Sha256: 1078c20719ef51a976003f6567515618570ee309949f25ccdd72e6769720e29f
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
require 'devise/strategies/http_authenticatable' module Devise module Models # Adds HttpAuthenticatable behavior to your model. It expects that your # model class responds to authenticate and authentication_keys methods # (which for example are defined in authenticatable). module HttpAuthenticatable extend ActiveSupport::Concern module ClassMethods # Authenticate an user using http. def authenticate_with_http(username, password) authenticate(authentication_keys.first => username, :password => password) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems