summaryrefslogtreecommitdiffstats
path: root/forum/authentication/base.py
diff options
context:
space:
mode:
authorhrcerqueira <hrcerqueira@gmail.com>2010-03-03 16:05:46 +0000
committerhrcerqueira <hrcerqueira@gmail.com>2010-03-03 16:05:46 +0000
commitec71d0c85766da2f9c369d2dc92c83d2a25cd22d (patch)
tree471a930a2e551846902300958dc5435233fd8d0c /forum/authentication/base.py
parent1d35d25b8ce9f3004eebd10d88757c5921dd686c (diff)
downloadaskbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.tar.gz
askbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.tar.bz2
askbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.zip
Temp login token request (for password recovery and google openid problems)
Utilities to send html emails, a base html email template and template tags to build full urls with domain name and protocol (for html email images and styles) Email validation now uses an improved algorithm Fixed a bug in the user message system
Diffstat (limited to 'forum/authentication/base.py')
-rwxr-xr-xforum/authentication/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/forum/authentication/base.py b/forum/authentication/base.py
index 08534adc..99005866 100755
--- a/forum/authentication/base.py
+++ b/forum/authentication/base.py
@@ -33,6 +33,10 @@ class ConsumerTemplateContext(object):
extra_css = []
show_to_logged_in_user = True
+ @classmethod
+ def readable_key(cls, key):
+ return key.key
+
class InvalidAuthentication(Exception):
def __init__(self, message):
self.message = message