Class: SolidQueueMonitor::AuthenticationService
- Inherits:
-
Object
- Object
- SolidQueueMonitor::AuthenticationService
- Defined in:
- app/services/solid_queue_monitor/authentication_service.rb
Class Method Summary collapse
Class Method Details
.authenticate(username, password) ⇒ Object
5 6 7 8 9 10 |
# File 'app/services/solid_queue_monitor/authentication_service.rb', line 5 def self.authenticate(username, password) return true unless SolidQueueMonitor.authentication_enabled username == SolidQueueMonitor.username && password == SolidQueueMonitor.password end |
.authentication_required? ⇒ Boolean
12 13 14 |
# File 'app/services/solid_queue_monitor/authentication_service.rb', line 12 def self.authentication_required? SolidQueueMonitor.authentication_enabled end |