2016-05-19 07:11:50 +02:00
|
|
|
package Lemonldap::NG::Portal::Auth::DBI;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use Mouse;
|
2016-05-22 14:22:59 +02:00
|
|
|
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_BADCREDENTIALS);
|
2016-05-19 07:11:50 +02:00
|
|
|
|
|
|
|
our $VERSION = '2.0.0';
|
|
|
|
|
|
|
|
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
|
|
|
|
'Lemonldap::NG::Portal::Lib::DBI';
|
|
|
|
|
2016-06-09 20:40:20 +02:00
|
|
|
# RUNNING METHODS
|
|
|
|
|
2016-05-19 07:11:50 +02:00
|
|
|
sub authenticate {
|
|
|
|
my ( $self, $req ) = @_;
|
|
|
|
return $self->check_password($req) ? PE_OK : PE_BADCREDENTIALS;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub authLogout {
|
|
|
|
PE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|