diff src/pages/login/logged/page_meta.py @ 963:2932170bb526

pages: added login/logged and register pages - login page will redirect to logged if a session is already active - if a redirect url is set, use will be redirected to it when login/registration is successful - logged page allow to disconnect profile
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:47:07 +0200
parents
children b92b06f023cb
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pages/login/logged/page_meta.py	Fri Oct 27 18:47:07 2017 +0200
@@ -0,0 +1,13 @@
+#!/usr/bin/env python2.7
+# -*- coding: utf-8 -*-
+
+from sat.core.log import getLogger
+log = getLogger('pages/login')
+
+"""SàT log-in page, with link to create an account"""
+
+template = u"login/logged.html"
+
+
+def prepare_render(self, request):
+    request.template_data['profile'] = self.getProfile(request)