Commit 30400ce4 authored by Daniel STAN's avatar Daniel STAN

validation: retire les caractères spéciaux des urls

Parce que plein de clients mails les ignorent et coupent les urls avant la fin.
parent 6172d645
......@@ -10,7 +10,7 @@ from django.core.urlresolvers import reverse
def _generate_secret():
"""Génère un mot de passe aléatoire"""
random.seed(datetime.datetime.now().microsecond)
chars = string.letters + string.digits + '=+*.,$'
chars = string.letters + string.digits
length = 64
return u''.join([random.choice(chars) for _ in xrange(length)])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment