is not in hydra-server's scope

This commit is contained in:
Rob Vermaas 2012-01-28 21:03:44 +01:00
parent 1c0cd99c3e
commit 8d78a688c7

View file

@ -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);