forked from lix-project/hydra
Use $c->config
This commit is contained in:
parent
f188fe5683
commit
486b6037a9
|
@ -187,8 +187,6 @@ sub sendemail {
|
||||||
sub reset_password : Chained('user') PathPart('reset-password') Args(0) {
|
sub reset_password : Chained('user') PathPart('reset-password') Args(0) {
|
||||||
my ($self, $c) = @_;
|
my ($self, $c) = @_;
|
||||||
|
|
||||||
my %config = new Config::General(getHydraConf)->getall;
|
|
||||||
|
|
||||||
# generate password
|
# generate password
|
||||||
my $password = Crypt::RandPasswd->word(8,10);
|
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",
|
"New password for Hydra",
|
||||||
"Hi,\n\n".
|
"Hi,\n\n".
|
||||||
"Your password has been reset. Your new password is '$password'.\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"
|
"With regards, Hydra\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue