Exception: Authentication::Logic::NilCryptoProvider

Inherits:
InvalidCryptoProvider show all
Defined in:
lib/auth/logic/errors.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#messageObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/auth/logic/errors.rb', line 15

def message
  <<~EOS
    In version 5, Authentication::Logic used SCrypt by default. As of version 6, there
    is no default. We still recommend SCrypt. If you previously relied on
    this default, then, in your User model (or equivalent), please set the
    following:

        acts_as_authentic do |c|
          c.crypto_provider = ::Authentication::Logic::CryptoProviders::SCrypt
        end

    Furthermore, the Authentication::Logic gem no longer depends on the scrypt gem. In
    your Gemfile, please add scrypt.

        gem "scrypt", "~> 3.0"

    We have made this change in Authentication::Logic 6 so that users of other crypto
    providers no longer need to install the scrypt gem.
  EOS
end