annotate Lib/Security.pm @ 127:0dce0470a3d8
In the IMPL::Web::ControllerUnit added the ability to notify a form about a wrong data from a transaction
added a relativeUrl function for a usage from a templates
IMPL::Web::TT::Form now fully functional
author |
wizard |
date |
Fri, 11 Jun 2010 20:21:07 +0400 |
parents |
16ada169ca75 |
children |
|
rev |
line source |
49
|
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
|