From 486b6037a9379ba9b16a14e6c354fbcb4fca69f7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Jan 2013 14:06:12 +0100 Subject: [PATCH] Use $c->config --- src/lib/Hydra/Controller/Admin.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/Hydra/Controller/Admin.pm b/src/lib/Hydra/Controller/Admin.pm index c68cdaf7..ef3fa6f8 100644 --- a/src/lib/Hydra/Controller/Admin.pm +++ b/src/lib/Hydra/Controller/Admin.pm @@ -187,8 +187,6 @@ 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); @@ -204,7 +202,7 @@ sub reset_password : Chained('user') PathPart('reset-password') Args(0) { "New password for Hydra", "Hi,\n\n". "Your password has been reset. Your new password is '$password'.\n". - "You can change your password at ".$config{'base_uri'}."/change-password .\n". + "You can change your password at " . $c->config()->{'base_uri'} . "/change-password .\n". "With regards, Hydra\n" );