Mercurial > pub > Impl
view Lib/Security.pm @ 56:117b6956d5a5
Web application in progress
author | wizard |
---|---|
date | Thu, 04 Mar 2010 15:46:17 +0300 |
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;