diff options
author | Jogi Hofmüller <jogi@mur.at> | 2011-08-02 15:12:25 +0000 |
---|---|---|
committer | Jogi Hofmüller <jogi@mur.at> | 2011-08-02 15:12:25 +0000 |
commit | 66fa9853c0499fc95b37ba54ed121a5ac00b6015 (patch) | |
tree | 33b0d5f58d34050d898de5eb7581667c98a13a47 /tools/mmd/MmdWidgets.py | |
parent | - started working on user locations (diff) |
- added renewal for session id (every ten minutes)
- changed session timeout from ten minutes to two days
git-svn-id: https://svn.spreadspace.org/mur.sat@93 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools/mmd/MmdWidgets.py')
-rw-r--r-- | tools/mmd/MmdWidgets.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py index cfd4a7d..ec77eb0 100644 --- a/tools/mmd/MmdWidgets.py +++ b/tools/mmd/MmdWidgets.py @@ -66,7 +66,12 @@ def registerFormWidget (): def registerWidget (): html = ''' <h3>Thank you for registering!</h3> - You will receive an email containing a link to confirm your registration. Please use this link within 24 hours to complete registration. + <div> + You will receive an email containing a link to complete your registration. This link will stay valid for 24 hours. + </div> + <div> + Regards from the MURSAT1 team + </div> ''' return html @@ -193,8 +198,17 @@ def indexWidget (lcol, rcol, status, debug_info = False): Email: {2} Status: {3} Expires: {4} + Renewal: {5} + Now: {6} </pre> - '''.format (debug_info.session_id, debug_info.ip, debug_info.user.email, debug_info.status, debug_info.expires) + '''.format ( + debug_info.session_id, + debug_info.ip, + debug_info.user.email, + debug_info.status, + debug_info.expires, + debug_info.renewal, + time.strftime ('%s')) else: debug = '' |