23 lines
517 B
Ruby
23 lines
517 B
Ruby
# frozen_string_literal: true
|
|
|
|
module UsersHelper
|
|
def display_password_reset_link?
|
|
devise_mapping.recoverable? &&
|
|
controller_name != 'passwords'
|
|
end
|
|
|
|
def display_email_confirmation_link?
|
|
devise_mapping.confirmable? &&
|
|
controller_name != 'confirmations'
|
|
end
|
|
|
|
def display_unlock_link?
|
|
devise_mapping.lockable? &&
|
|
resource_class.unlock_strategy_enabled?(:email) &&
|
|
controller_name != 'unlocks'
|
|
end
|
|
|
|
def display_omniauth_links?
|
|
devise_mapping.omniauthable?
|
|
end
|
|
end
|