We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d8ae8b + 0de42cb commit 0a9638cCopy full SHA for 0a9638c
lib/tiny_admin/plugins/simple_auth.rb
@@ -8,7 +8,7 @@ module SimpleAuth
8
class << self
9
def configure(app, opts = {})
10
@@opts = opts || {} # rubocop:disable Style/ClassVars
11
- @@opts[:password] ||= ENV.fetch('ADMIN_PASSWORD_HASH') # NOTE: fallback value
+ @@opts[:password] ||= ENV.fetch('ADMIN_PASSWORD_HASH', nil) # NOTE: fallback value
12
13
Warden::Strategies.add(:secret) do
14
def authenticate!
0 commit comments