Skip to content

Commit

Permalink
✨ Add SASL::Authenticators#remove_authenticator
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Sep 29, 2023
1 parent 7c6938b commit 8a1ac02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/net/imap/sasl/authenticators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def add_authenticator(name, authenticator = nil)
@authenticators[key] = authenticator
end

# Removes the authenticator registered for +name+
def remove_authenticator(name)
key = name.upcase.to_sym
@authenticators.delete(key)
end

# :call-seq:
# authenticator(mechanism, ...) -> auth_session
#
Expand Down

0 comments on commit 8a1ac02

Please sign in to comment.