summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-02-21 02:31:15 +0100
committerMatthias H <apoc@sixserv.org>2014-02-21 02:31:15 +0100
commit375098fcba7a60abcc871e28f66e98c403435b43 (patch)
treee2a1c2e3c79425103c23123404455fd2e179f808
parent46861ac79ba3963cefde7402b3a167b83badeca7 (diff)
[auth] randomized default password
-rw-r--r--lib/rbot/botuser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index 4e93beb4..110c078f 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -35,7 +35,7 @@ class Bot
module Auth
Config.register Config::StringValue.new( 'auth.password',
- :default => 'rbotauth', :wizard => true,
+ :default => [*?a..?z,*?A..?Z,*?0..?9].sample(8).join, :wizard => true,
:on_change => Proc.new {|bot, v| bot.auth.botowner.password = v},
:desc => _('Password for the bot owner'))
Config.register Config::BooleanValue.new( 'auth.login_by_mask',