Update version & tidy (#2366)
This commit is contained in:
parent
d8114e0e16
commit
0469d36aec
|
@ -15,9 +15,9 @@ use MIME::Base64 qw(encode_base64);
|
|||
use JSON qw(from_json to_json);
|
||||
use POSIX qw(strftime);
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_NOTOKEN
|
||||
PE_OK
|
||||
PE_SENDRESPONSE
|
||||
PE_TOKENEXPIRED
|
||||
PE_NO_SECOND_FACTORS
|
||||
|
|
|
@ -3,10 +3,10 @@ package Lemonldap::NG::Portal::2F::Ext2F;
|
|||
use strict;
|
||||
use Mouse;
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_BADOTP
|
||||
PE_ERROR
|
||||
PE_FORMEMPTY
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_BADOTP
|
||||
PE_FORMEMPTY
|
||||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
|
|
|
@ -3,18 +3,20 @@ package Lemonldap::NG::Portal::2F::Mail2F;
|
|||
use strict;
|
||||
use Mouse;
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_BADOTP
|
||||
PE_ERROR
|
||||
PE_FORMEMPTY
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_BADOTP
|
||||
PE_FORMEMPTY
|
||||
PE_SENDRESPONSE
|
||||
PE_MUSTHAVEMAIL
|
||||
);
|
||||
|
||||
our $VERSION = '2.0.6';
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::SecondFactor',
|
||||
'Lemonldap::NG::Portal::Lib::SMTP';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::SecondFactor
|
||||
Lemonldap::NG::Portal::Lib::SMTP
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
|
|
|
@ -10,17 +10,17 @@ use Lemonldap::NG::Portal::Main::Constants qw(
|
|||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
our $VERSION = '2.0.8';
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::SecondFactor',
|
||||
'Lemonldap::NG::Portal::Lib::REST';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::SecondFactor
|
||||
Lemonldap::NG::Portal::Lib::REST
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
has prefix => ( is => 'rw', default => 'rest' );
|
||||
|
||||
has prefix => ( is => 'rw', default => 'rest' );
|
||||
has initAttrs => ( is => 'rw', default => sub { {} } );
|
||||
|
||||
has vrfyAttrs => ( is => 'rw', default => sub { {} } );
|
||||
|
||||
sub init {
|
||||
|
|
|
@ -10,14 +10,13 @@ use Lemonldap::NG::Portal::Main::Constants qw(
|
|||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
our $VERSION = '2.0.8';
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::SecondFactor';
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
has prefix => ( is => 'rw', default => 'radius' );
|
||||
|
||||
has radius => ( is => 'rw' );
|
||||
|
||||
sub init {
|
||||
|
|
|
@ -7,7 +7,10 @@ use JSON qw(from_json to_json);
|
|||
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::Plugin', 'Lemonldap::NG::Common::TOTP';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::Plugin
|
||||
Lemonldap::NG::Common::TOTP
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
|
|
|
@ -7,8 +7,10 @@ use JSON qw(from_json to_json);
|
|||
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::Plugin',
|
||||
'Lemonldap::NG::Portal::Lib::U2F';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::Plugin
|
||||
Lemonldap::NG::Portal::Lib::U2F
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
|
|
|
@ -8,17 +8,19 @@ use strict;
|
|||
use Mouse;
|
||||
use JSON qw(from_json to_json);
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_BADOTP
|
||||
PE_ERROR
|
||||
PE_FORMEMPTY
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_BADOTP
|
||||
PE_FORMEMPTY
|
||||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::SecondFactor',
|
||||
'Lemonldap::NG::Common::TOTP';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::SecondFactor
|
||||
Lemonldap::NG::Common::TOTP
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
|
|
|
@ -4,22 +4,23 @@
|
|||
# have registered their U2F key
|
||||
package Lemonldap::NG::Portal::2F::U2F;
|
||||
|
||||
#use 5.16.0;
|
||||
use strict;
|
||||
use Mouse;
|
||||
use JSON qw(from_json to_json);
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_BADCREDENTIALS
|
||||
PE_ERROR
|
||||
PE_OK
|
||||
PE_SENDRESPONSE
|
||||
PE_ERROR
|
||||
PE_U2FFAILED
|
||||
PE_SENDRESPONSE
|
||||
PE_BADCREDENTIALS
|
||||
);
|
||||
|
||||
our $VERSION = '2.0.10';
|
||||
|
||||
extends 'Lemonldap::NG::Portal::Main::SecondFactor',
|
||||
'Lemonldap::NG::Portal::Lib::U2F';
|
||||
extends qw(
|
||||
Lemonldap::NG::Portal::Main::SecondFactor
|
||||
Lemonldap::NG::Portal::Lib::U2F
|
||||
);
|
||||
|
||||
# INITIALIZATION
|
||||
|
||||
|
|
|
@ -13,17 +13,14 @@ extends 'Lemonldap::NG::Portal::Main::SecondFactor';
|
|||
# INITIALIZATION
|
||||
|
||||
has prefix => ( is => 'ro', default => 'utotp' );
|
||||
|
||||
has logo => ( is => 'rw', default => 'utotp.png' );
|
||||
|
||||
has u2f => ( is => 'rw' );
|
||||
|
||||
has totp => ( is => 'rw' );
|
||||
has logo => ( is => 'rw', default => 'utotp.png' );
|
||||
has u2f => ( is => 'rw' );
|
||||
has totp => ( is => 'rw' );
|
||||
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_FORMEMPTY
|
||||
PE_OK
|
||||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@ use strict;
|
|||
use Mouse;
|
||||
use JSON qw(from_json to_json);
|
||||
use Lemonldap::NG::Portal::Main::Constants qw(
|
||||
PE_OK
|
||||
PE_ERROR
|
||||
PE_BADOTP
|
||||
PE_FORMEMPTY
|
||||
PE_OK
|
||||
PE_SENDRESPONSE
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user