view Lib/Security.pm @ 103:c289ed9662ca

Schema beta 2 More strict validation, support for inflating a simple nodes and properties
author wizard
date Fri, 07 May 2010 18:17:40 +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;