Authen-Simple-CDBI

 view release on metacpan or  search on metacpan

lib/Authen/Simple/CDBI.pm  view on Meta::CPAN

    unless ( defined $encrypted && length $encrypted ) {

        $self->log->debug( qq/Encrypted password for user '$username' is null./ )
          if $self->log;

        return 0;
    }

    unless ( $self->check_password( $password, $encrypted ) ) {

        $self->log->debug( qq/Failed to authenticate user '$username'. Reason: 'Invalid credentials'/ )
          if $self->log;

        return 0;
    }

    $self->log->debug( qq/Successfully authenticated user '$username' with class '$class'./ )
      if $self->log;

    return 1;
}



( run in 0.236 second using v1.01-cache-2.11-cpan-a5abf4f5562 )