Mercurial > pub > Impl
annotate Lib/Security.pm @ 48:1c3c3e63a314
security in progress
| author | Sergey |
|---|---|
| date | Fri, 26 Feb 2010 01:43:42 +0300 |
| parents | 03e58a454b20 |
| children | 16ada169ca75 |
| rev | line source |
|---|---|
| 0 | 1 use strict; |
| 2 package Security; | |
| 3 | |
| 4 use constant { | |
| 5 AUTH_FAILED => 0, | |
| 6 AUTH_SUCCESS => 1, | |
| 7 AUTH_INCOMPLETE => 2, | |
| 8 AUTH_NOAUTH => 3 | |
| 9 }; | |
| 10 | |
| 11 my $CurrentSession; | |
| 12 | |
| 13 sub CurrentSession { | |
| 14 my ($class,$newSession) = @_; | |
| 15 | |
| 16 $CurrentSession = $newSession if @_>=2; | |
| 17 return $CurrentSession; | |
| 18 } | |
| 19 | |
| 20 1; | |
| 21 |
