From: Matthias H Date: Fri, 21 Feb 2014 01:31:15 +0000 (+0100) Subject: [auth] randomized default password X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=375098fcba7a60abcc871e28f66e98c403435b43;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git [auth] randomized default password --- 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',