public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Search Repo:
Added /__midcom/login and /__midcom/logout routes and functionality
Tero Heikkinen (author)
Thu Jun 26 08:55:28 -0700 2008
commit  25ec081a45a75ee1cffc61f3bb62ff813d3efba1
tree    6136bb63d023f28bbc5d8156a0129f4d72eba47a
parent  bea9c7a69a31a1abc08a818414b48ac2af0f9c7c
...
1
 
2
3
4
...
58
59
60
 
 
 
 
 
 
 
 
 
...
 
1
2
3
4
...
58
59
60
61
62
63
64
65
66
67
68
69
0
@@ -1,4 +1,4 @@
0
-services_authentication: midcom_core_services_authentication_basic
0
+services_authentication: midcom_core_services_authentication_sessionauth
0
 services_authorization: midcom_core_services_authorization_simple
0
 services_templating: midcom_core_services_templating_midgard
0
 services_sessioning: midcom_core_services_sessioning_midgard
0
@@ -58,3 +58,12 @@ routes:
0
         action: messages
0
         route: /__midcom/comet/messages
0
         content_entry_point: midcom-comet-messages
0
+ login:
0
+ controller: midcom_core_controllers_authentication
0
+ action: login
0
+ route: /__midcom/login
0
+ content_entry_point: midcom-authentication-form
0
+ logout:
0
+ controller: midcom_core_controllers_authentication
0
+ action: logout
0
+ route: /__midcom/logout
...
148
149
150
 
 
 
 
 
 
 
 
 
 
151
152
153
...
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
0
@@ -148,6 +148,16 @@ class midcom_core_services_authentication_sessionauth implements midcom_core_ser
0
      */
0
     public function logout()
0
     {
0
+ $qb = new midgard_query_builder('midcom_core_login_session_db');
0
+ $qb->add_constraint('guid', '=', $this->session_cookie->get_session_id());
0
+ $res = $qb->execute();
0
+ $this->session_cookie->delete_login_session_cookie();
0
+ if (! $res)
0
+ {
0
+ return false;
0
+ }
0
+ $res[0]->delete();
0
+ $res[0]->purge();
0
         return true;
0
     }
0
     

Comments

    No one has commented yet.