comparison MoinMoin/macro/Login.py @ 483:a594780d5e64

Login macro, login/logout/UserPreferences actions imported from: moin--main--1.5--patch-487
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 19 Mar 2006 01:21:38 +0000
parents
children 2077ed6974d7
comparison
equal deleted inserted replaced
482:3c08c0657dad 483:a594780d5e64
1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - login form
4
5 @copyright: 2005-2006 by Radomirs Cirskis <nad2000@gmail.com>
6 @license: GNU GPL, see COPYING for details.
7 """
8 from MoinMoin.widget import html
9 from MoinMoin import userform
10
11 def execute(macro, args):
12 """ Show the login form (but only when not logged in) """
13 request = macro.request
14 if request.user.valid:
15 data = u''
16 else:
17 data = userform.getLogin(request)
18 return data
19