blob: fe53542c81ffb05099d93988e44bafd574f3ca42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
-- Logon / Logoff functions
module (..., package.seeall)
--require ("session")
mvc.on_load = function(self, parent)
if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then
self.worker[self.conf.action] = list_redir(self)
end
--logit ("logon.mvc.on_load activated")
end
logon = function(self)
return ( {logon=self.model.logon(self, clientdata.userid, clientdata.password,clientdata.sessionid) })
end
logout = function(self)
return { logout = self.model:logoff(clientdata.sessionid) }
end
status = function(self)
return( {stats= self.model:status(clientdata.sessionid) })
end
|