From 375098fcba7a60abcc871e28f66e98c403435b43 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Fri, 21 Feb 2014 02:31:15 +0100 Subject: [auth] randomized default password --- lib/rbot/botuser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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', -- cgit v1.2.3