app/models/user.rb
# frozen_string_literal: true
class User < ApplicationRecord
# Connects this user object to Blacklights Bookmarks.
include Blacklight::User
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :http_header_authenticatable, :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Method added by Blacklight; Blacklight uses #to_s on your
# user class to get a user-displayable login/identifier for
# the account.
def to_s
email
end
def password_required?
false
end
end