Code Search for Developers
 
 
  

SimpleAuth.pm from AlphaMail at Krugle


Show SimpleAuth.pm syntax highlighted

package SimpleAuth;

use 5.008;
use strict;
use warnings;

sub check_credentials
{
   my $r    = shift;  # Apache request object
   my $username = shift;
   my $password = shift;

   return 1 if($username eq 'admin' && $password eq 'test');
   return 1 if($username eq 'user' && $password eq 'test');

   return 0;
}

1;




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  site/
    index.html
    logout.html
  site2/
    EditControlRule.pm
    MyPermissionFactory.pm
    README
    StringUserFactory.pm
    apache2.conf
    apache_sitecontrol.conf
    logout.html
    modperl_init.pl
    page.html
    samplelogin.pl
  EditControlRule.pm
  MyPermissionFactory.pm
  README
  SimpleAuth.pm
  apache_modperlinit.pl
  apache_sitecontrol.conf
  index.html
  samplelogin.pl
  schema.psql