Lemonldap-NG-Common
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Lemonldap/NG/Common/Apache/Session/Store.pm view on Meta::CPAN
$self->{args} = $session->{args};
# Store session in cache
my $id = $session->{data}->{_session_id};
$self->storeInCache( $id, $session->{serialized} );
# Store in session backend
return $self->module->insert($session);
}
sub update {
my $self = shift;
my $session = shift;
$self->{args} = $session->{args};
#TODO: remove cache on all LL::NG instances if updateCache == 1
unless ( defined( $session->{args}->{updateCache} )
and $session->{args}->{updateCache} == -1 )
{
lib/Lemonldap/NG/Common/Cli.pm view on Meta::CPAN
print qq{
Num : $conf->{cfgNum}
Author : $conf->{cfgAuthor}
Author IP: $conf->{cfgAuthorIP}
Date : } . localtime( $conf->{cfgDate} ) . qq{
Version : $conf->{cfgVersion}
Log : $conf->{cfgLog}
};
}
sub updateCache {
my $self = shift;
my $conf = $self->confAccess->getConf( { noCache => 2 } );
die "Must not be launched as root" unless ($>);
print STDERR
qq{Cache updated to configuration $conf->{cfgNum} for user $>\n};
}
sub testEmail {
my $self = shift;
my $dest = shift;
lib/Lemonldap/NG/Common/Session.pm view on Meta::CPAN
return \%h;
}
sub _save_data {
my ( $self, $data ) = @_;
my %saved_data = %$data;
$self->data( \%saved_data );
}
sub update {
my ( $self, $infos, $tieOptions ) = @_;
unless ( ref $infos eq "HASH" ) {
$self->error("You need to provide a HASHREF");
return 0;
}
my $data = $self->_tie_session(
{ ( $tieOptions ? %$tieOptions : () ), noCache => 1 } );
scripts/encryptTotpSecrets view on Meta::CPAN
else {
verbose "User $uid does not have a TOTP";
}
};
if ($@) {
verbose "Error on psession $k: $@";
}
}
sub update2fArray {
my ( $id, $_2fDevices ) = @_;
my $session = Lemonldap::NG::Common::Session->new(
storageModule => $args->{backend},
storageModuleOptions => $args,
id => $id,
);
unless ( $session->data ) {
die "Error while opening session $id";
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.654 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )