# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
+from urlparse import urljoin
from django import forms
from django.utils.translation import ugettext as _
Generates a one-use only link for resetting password and sends to the user.
"""
for user in self.users_cache:
+ url = urljoin(BASEURL,
+ '/im/local/reset/confirm/%s-%s' %(int_to_base36(user.id),
+ token_generator.make_token(user)))
t = loader.get_template(email_template_name)
c = {
'email': user.email,
- 'domain': BASEURL,
+ 'url': url,
'site_name': SITENAME,
- 'uid': int_to_base36(user.id),
'user': user,
- 'token': token_generator.make_token(user)
+ 'baseurl': BASEURL
}
from_email = DEFAULT_FROM_EMAIL
send_mail(_("Password reset on %s") % SITENAME,
για την υπηρεσία {{ site_name }} της ΕΔΕΤ κατά την Alpha (πιλοτική) φάση λειτουργίας της,
χρησιμοποιήστε τον παρακάτω σύνδεσμο:
-{{ domain }}/im/local/reset/confirm/{{ uid }}-{{ token }}/
+{{url}}
Σημείωση:
έκδοση Alpha στην έκδοση Beta. Θα υπάρξει έγκαιρη ειδοποίησή σας πριν
από τη μετάβαση αυτή.
-Περισσότερα για την υπηρεσία θα βρείτε στο {{ domain }}/, αφού
+Περισσότερα για την υπηρεσία θα βρείτε στο {{ baseurl }}, αφού
ενεργοποιήσετε την πρόσκλησή σας.
Για όποιες παρατηρήσεις ή προβλήματα στη λειτουργεία της υπηρεσίας μπορείτε να
You can use the following link:
-{{ domain }}/local/reset/confirm/{{ uid }}-{{ token }}/
+{{ url }}
to reset your password for GRNET's {{ site_name }} service has been created
for its Alpha test phase.
Also, please bear in mind that all data will be deleted when the service moves to Beta.
We will notify you before the transition.
-For more information, please visit {{ domain }}/, after
+For more information, please visit {{ baseurl }}, after
activating your invitation.
We look forward to your feedback, to improve the functionality and