lib/auther/authenticator.rb in auther-15.0.2 vs lib/auther/authenticator.rb in auther-16.0.0

- old
+ new

@@ -2,11 +2,11 @@ module Auther # Manages account authentication. class Authenticator # rubocop:disable Metrics/ParameterLists - def initialize secret, account_model, account_presenter, logger: Auther::NullLogger.new(STDOUT) + def initialize secret, account_model, account_presenter, logger: LOGGER @cipher = Auther::Cipher.new secret @account_model = account_model @account_presenter = account_presenter @logger = logger end @@ -39,12 +39,10 @@ rescue ActiveSupport::MessageEncryptor::InvalidMessage log_info %(Authentication failed! Invalid credential(s) for "#{account_model.name}" account.) false end - def authentic_name? - account_presenter.name == account_model.name - end + def authentic_name? = account_presenter.name == account_model.name def authentic_login? authentic? account_model.encrypted_login, account_presenter.login, "login" end