]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
[auth] randomized default password
authorMatthias H <apoc@sixserv.org>
Fri, 21 Feb 2014 01:31:15 +0000 (02:31 +0100)
committerMatthias H <apoc@sixserv.org>
Fri, 21 Feb 2014 01:31:15 +0000 (02:31 +0100)
lib/rbot/botuser.rb

index 4e93beb4cb39c3ab9661fd2992f0f95072b8f705..110c078f6b3be36aea496a13a5be2689a1924b9f 100644 (file)
@@ -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',