Skip to content

Commit

Permalink
allow you to disable dashboard authentication
Browse files Browse the repository at this point in the history
allow you to disable dashboard authentication by providing empty string '' for username and password
  • Loading branch information
chaoranxie committed May 29, 2013
1 parent 1409d20 commit 21be702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/provider/sensu_dashboard_config/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def user

def user=(value)
conf['dashboard']['user'] = value
conf['dashboard'].delete('user') if ''==value
end

def password
Expand All @@ -64,5 +65,7 @@ def password

def password=(value)
conf['dashboard']['password'] = value
conf['dashboard'].delete('password') if ''==value

end
end

0 comments on commit 21be702

Please sign in to comment.