You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lockable.rb
    path of file: ./repos/stackneveroverflow/vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models
    
    the code of the file until where you have to start completion: require "devise/hooks/lockable"

module Devise
  module Models
    # Handles blocking a user access after a cer
    
      def unauthenticated_message
        # If set to paranoid mode, do not show the locked message because it
        # leaks the existence of an account.
        if Devise.paranoid
          super
        elsif access_locked? || (lock_strategy_enabled?(:failed_attempts) && attempts_exceeded?)
          :locked
        elsif lock_strategy_enabled?(:failed_attempts) && last_attempt? && self.class.last_attempt_warning
          :last_attempt
        else
          super
        end
      end