is not in hydra-server's scope
This commit is contained in:
parent
1c0cd99c3e
commit
8d78a688c7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue