- Timestamp:
- 23 Jan 2011, 21:48:44 (14 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r5655 r5656 52 52 import csv,re,os,sys 53 53 import md5 54 import base64 54 55 from shutil import copy2,copy 55 56 from Products.AdvancedQuery import Eq, Between, Le,In … … 596 597 return getattr(student_entry,"password","not set") 597 598 ###) 599 600 security.declarePublic('getCredentialFromAuthHeader') ###( 601 def getCredentialFromAuthHeader(self,request): 602 return base64.b64decode(request._auth.replace('Basic ','')) 603 ###) 598 604 599 605 security.declarePublic('checkPassword') ###( -
WAeUP_SRP/trunk/skins/cps_custom/logged_in.py
r5655 r5656 19 19 pass 20 20 import DateTime 21 import os 21 import os 22 22 current = DateTime.DateTime() 23 23 import logging … … 38 38 member = mtool.getAuthenticatedMember() 39 39 member_id = str(member) 40 41 cred = context.waeup_tool.getCredentialFromAuthHeader(request) 40 42 41 43 if context.isStaff(): … … 300 302 #Anonymous 301 303 else: 304 logger.info('failed login with %s' % cred) 302 305 response.expireCookie('__ac', path='/') 303 306 return context.user_logged_in_failed()
Note: See TracChangeset for help on using the changeset viewer.