From 8d78a688c76e4793a046e60aaa3818ddc9ea873c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 28 Jan 2012 21:03:44 +0100 Subject: [PATCH] is not in hydra-server's scope --- src/lib/Hydra/Controller/Admin.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Hydra/Controller/Admin.pm b/src/lib/Hydra/Controller/Admin.pm index 464075e8..0035c4ce 100644 --- a/src/lib/Hydra/Controller/Admin.pm +++ b/src/lib/Hydra/Controller/Admin.pm @@ -13,6 +13,7 @@ use Sys::Hostname::Long; use Email::Simple; use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP; +use Config::General; sub nixMachines { my ($c) = @_; @@ -143,6 +144,8 @@ sub sendemail { sub reset_password : Chained('user') PathPart('reset-password') Args(0) { my ($self, $c) = @_; + my %config = new Config::General(getHydraConf)->getall; + # generate password my $password = Crypt::RandPasswd->word(8,10);