Ignore:
Timestamp:
23 Jan 2011, 21:48:44 (14 years ago)
Author:
Henrik Bettermann
Message:

Log failed logins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/cps_custom/logged_in.py

    r5655 r5656  
    1919        pass
    2020import DateTime
    21 import os
     21import os 
    2222current = DateTime.DateTime()
    2323import logging
     
    3838member = mtool.getAuthenticatedMember()
    3939member_id = str(member)
     40
     41cred = context.waeup_tool.getCredentialFromAuthHeader(request)
    4042
    4143if context.isStaff():
     
    300302#Anonymous
    301303else:
     304    logger.info('failed login with %s' % cred)
    302305    response.expireCookie('__ac', path='/')
    303306    return context.user_logged_in_failed()
Note: See TracChangeset for help on using the changeset viewer.