view Lib/Security.pm @ 157:c7652cf29a80

Fixed PostToDom with empty fields issue. Fixed the includes search order for TT::Document.
author wizard
date Wed, 20 Oct 2010 18:02:47 +0400
parents 16ada169ca75
children
line wrap: on
line source

use strict;
package Security;

use constant {
    AUTH_FAILED =>      0,
    AUTH_SUCCESS =>     1,
    AUTH_INCOMPLETE =>  2,
    AUTH_NOAUTH =>      3
};

my $CurrentSession;

sub CurrentSession {
    my ($class,$newSession) = @_;
    
    $CurrentSession = $newSession if @_>=2;
    return $CurrentSession;
}

1;