Tim Abbott
eb71173be3
lint: Fix warnings under confirmation/.
2016-06-20 08:19:54 -07:00
Tim Abbott
f6f8f1fe36
Use new-style classes consistently for Python 3 support.
...
Also add the fixer for this to our list of fixers we check.
2015-11-04 08:01:52 -08:00
Reid Barton
5ea3bf85de
Django 1.8 compatibility: module_name -> model_name
...
(imported from commit 38ee96c9a8da5b3abfce8ba47f85dd7d59bcb599)
2015-08-20 23:15:44 -07:00
David Roe
e61de3e052
Fix invitation e-mail to use http:// in non-deployed case.
...
(imported from commit af68962c078036ce0fe4f37feaec6b43766b3059)
2015-08-18 20:17:48 -07:00
Jason Michalski
0ea54a043e
Use settings.EXTERNAL_HOST when sending activation emails
...
Activation emails were using django's sites framework which always has
the domain set to zulip.com.
(imported from commit b81eae96e1a75b64dd93970760b869f3271ce88c)
2014-07-03 12:28:29 -04:00
Jessica McKellar
3f8dfc7b9b
Move to a common random token generation function instead of several one-offs.
...
(imported from commit 3217de5384088deff68fbffc6bd481c045a76817)
2013-08-09 14:59:26 -04:00
Luke Faraone
40ad84b363
Introduce script to bulk-create activation URIs.
...
(imported from commit 12435d8f0d48833f52a699c0d8a0c9ec0750e6af)
2013-02-28 14:34:18 -05:00
Luke Faraone
8309e0f001
[third] Factor out activation key generation / url creation
...
(imported from commit 18358e29e13f025ec640b0b166e168b4fb3cd94c)
2013-02-28 14:34:18 -05:00
Luke Faraone
3fb1889835
confirmation: Make send_confirmation accept custom templates and context.
...
(imported from commit 08f19a48f229029f68832868bc48a2ac160e85e7)
2013-01-14 10:25:26 -05:00
Keegan McAllister
bc2e7d77eb
confirmation: Use timezone-aware datetime object
...
django.utils.timezone.now returns an aware datetime object because USE_TZ =
True.
Fixes #80 .
(imported from commit c60f491fe00a98626ecced94fc3ea1f71f939a38)
2012-11-07 18:50:26 -05:00
Keegan McAllister
238533500a
confirmation: Increase entropy of confirmation_key
...
I am pretty sure there's no point to using a hash at all. But until I hear
back from the author, let's at least make sure we put as much entropy into the
hash as we expect to get out of it.
(imported from commit 51a231adeab014cc1af8cb67e89baf06e0a1f593)
2012-10-29 12:02:13 -04:00
Keegan McAllister
f55c8a4397
confirmation: Use HTTPS in email link
...
(imported from commit 5bf74ba45c7d09495caa7ecfbf3af6bd80311b9e)
2012-10-29 11:04:25 -04:00
Luke Faraone
ece9d64d34
Remove expiry; confirmations should never expire.
...
(imported from commit 093d8fa266c0ceeaff8c15257194d23a1ce90b61)
2012-10-01 10:45:58 -04:00
Luke Faraone
b801b50c26
Include third-party django-confirmation library.
...
Taken from http://code.google.com/p/django-confirmation/ .
Code is under the BSD 3-clause license.
(imported from commit cfb5a511097fe14fba7f1bcea62dfa25cfb58622)
2012-10-01 10:45:57 -04:00