Module: RequireEmailVerification

Extended by:
ActiveSupport::Concern
Includes:
Gitlab::Utils::StrongMemoize
Included in:
User
Defined in:
app/models/concerns/require_email_verification.rb

Overview

Require Email Verification module

Contains functionality to handle email verification

Constant Summary collapse

MAXIMUM_ATTEMPTS =
3
UNLOCK_IN =
24.hours

Instance Method Summary collapse

Instance Method Details

#lock_access!(opts = {}) ⇒ Object

When overridden, do not send Devise unlock instructions when locking access.



19
20
21
22
23
# File 'app/models/concerns/require_email_verification.rb', line 19

def lock_access!(opts = {})
  return super unless override_devise_lockable?

  super({ send_instructions: false })
end