Module: Devise::Passwordless
- Defined in:
- lib/devise/passwordless.rb,
lib/devise/passwordless/rails.rb,
lib/devise/passwordless/version.rb,
lib/devise/passwordless/login_token.rb,
app/mailers/devise/passwordless/mailer.rb,
lib/generators/devise/passwordless/install_generator.rb,
lib/devise/passwordless/tokenizers/signed_global_id_tokenizer.rb,
lib/devise/passwordless/tokenizers/message_encryptor_tokenizer.rb
Defined Under Namespace
Modules: Generators
Classes: Engine, ExpiredTokenError, InvalidOrExpiredTokenError, InvalidTokenError, LoginToken, Mailer, MessageEncryptorTokenizer, SessionsController, SignedGlobalIDTokenizer
Constant Summary
collapse
- FILTER_PARAMS_WARNING =
"[DEVISE-PASSWORDLESS] We have detected that your Rails configuration does not " \
"filter :token parameters out of your logs. You should append :token to your " \
"config.filter_parameters Rails setting so that magic link tokens don't " \
"leak out of your logs."
- VERSION =
"1.0.3"
Class Method Summary
collapse
Class Method Details
.check_filter_parameters(params) ⇒ Object
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/devise/passwordless.rb', line 33
def self.check_filter_parameters(params)
begin
unless params.find{|p| p.to_sym == :token}
warn FILTER_PARAMS_WARNING
end
rescue NoMethodError
return
end
end
|
.deprecator ⇒ Object
16
17
18
|
# File 'lib/devise/passwordless.rb', line 16
def self.deprecator
@deprecator ||= ActiveSupport::Deprecation.new("1.1", "Devise-Passwordless")
end
|
.secret_key ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/devise/passwordless.rb', line 20
def self.secret_key
if Devise.passwordless_secret_key.present?
Devise.passwordless_secret_key
else
Devise.secret_key
end
end
|