Commit Graph

59 Commits

Author SHA1 Message Date
Oliver Falk
f0a2d5aae4 Add a few more trusted URLs that we gathered from the logs 2022-02-18 14:09:10 +01:00
Oliver Falk
44e85365bc First preparations for Django >= 4.x 2022-02-18 14:09:09 +01:00
Oliver Falk
aa3a7a2497 A few more sites known to use default param 2022-02-18 14:09:09 +01:00
Oliver Falk
a80d704a59 Enhance the list. It's possible some non-ssl sites still use gravatar without https and some sites use secure.gravatar.com 2022-02-18 14:09:09 +01:00
Oliver Falk
63a4737717 Increase version 2022-02-18 14:09:09 +01:00
Oliver Falk
5ec186e039 Fix CWE-601 - Open URL redirection
- Only a few URLs are allowed now and this _will_ break some implementations
- Print information in the log about which URL was kicked
2022-02-18 14:09:08 +01:00
Oliver Falk
26ae405899 v1.5 - massive code update 2022-02-18 14:08:47 +01:00
Oliver Falk
84a265eca5 Central place for the schema root 2022-02-18 14:08:46 +01:00
Oliver Falk
85ccf0f7be Clean up with black 2022-02-18 14:08:45 +01:00
Oliver Falk
635951ff4d Make pylint happier, enhance a few tests and add missing schemas 2020-11-13 13:36:16 +01:00
Oliver Falk
e74365e788 Now that this source is 2 years old, time to upgrade the version
Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
2020-05-11 13:25:41 +02:00
Oliver Falk
060a664d26 Make response caching default and increase cache timeout to 15 minutes 2020-03-04 15:25:18 +01:00
Oliver Falk
6bc0390b48 Fix some debug prints + HttpResponse for Gravatar 2020-03-04 15:11:05 +01:00
Oliver Falk
b463f9f95a Add setting to easily be able to disable the response caching 2020-03-04 14:30:28 +01:00
Oliver Falk
476bddb21c A caching HttpResponse in order to reduce the roundtrip (a lot) 2020-03-04 14:23:58 +01:00
Oliver Falk
e9fe81a8bc The OpenID changes deserve a version increase :-) 2020-02-25 13:55:30 +01:00
Oliver Falk
180056f8c2 New design and cropping fixes/JCrop update 2019-08-09 09:20:43 +02:00
Oliver Falk
6814be78d7 Change cache for issue #50 2019-03-11 11:03:24 +01:00
Oliver Falk
166582bc9d Increase the max age, create separate option in config for it (CACHE_IMAGE_MAX_AGE). Issue #50 2019-03-08 13:49:09 +01:00
Oliver Falk
14db71cca0 Increase version 2019-02-28 13:35:01 +01:00
Oliver Falk
af9f3f9a1a Fallback to smtp backend if no MAILGUN is available 2019-02-25 15:46:23 +01:00
Oliver Falk
b92a535469 Revert caching 2019-02-19 09:56:49 +01:00
Oliver Falk
a19a837e82 Enable memcache caching 2019-02-18 16:40:44 +01:00
Oliver Falk
af8bee78db Add languages and message tags correction 2019-02-18 13:04:00 +01:00
Oliver Falk
2b9c5a7eec More adaptions to testing 2019-02-12 18:26:15 +01:00
Oliver Falk
855264657e Correct grammar, correct link to ivatar s/w and mark this version 1.0, since this is going to be deployed in prod (with some minor tweaks maybe) 2019-02-12 16:12:39 +01:00
clime
3fda33b6f6 enable setting SERVER_EMAIL from env, use DEFAULT_FROM_EMAIL for send_mail
From documentation for DEFAULT_FROM_EMAIL:

Default email address to use for various automated correspondence from the site manager(s).
This doesn’t include error messages sent to ADMINS and MANAGERS; for that, see SERVER_EMAIL.

That means it makes sense to make SERVER_EMAIL and DEFAULT_FROM_EMAIL separate settings and
not set one from another.
2019-02-10 19:36:43 +01:00
Oliver Falk
e554537c40 Integrate change from PR ls -ltrah, issue #32 2019-01-08 12:01:50 +01:00
Oliver Falk
abadbd1724 Merge branch 'devel' into 'devel'
make SITE_NAME, SECURE_BASE_URL, BASE_URL configurable from env

See merge request oliver/ivatar!95
2019-01-08 09:02:00 +01:00
Oliver Falk
06c6fc76b2 Implement option to specify EMAIL_BACKEND in ENV for issue #32 2019-01-07 19:42:18 +01:00
clime
a2b4c55976 make SITE_NAME, SECURE_BASE_URL, BASE_URL configurable from env 2018-12-29 16:08:46 +01:00
Oliver Falk
e783ea6601 Add DEFAULT_AVATAR_SIZE to config, as we need it in various places 2018-11-30 14:07:30 +01:00
Oliver Falk
2f79608a59 Add middleware and rearrange to make pylint happier 2018-11-19 15:43:46 +01:00
Oliver Falk
740c03e731 Set option to use proxy set value from X_FORWARDED_HOST 2018-11-16 13:23:18 +01:00
Oliver Falk
d92c56c7d1 Use pickle serializer, because of https://stackoverflow.com/questions/20301338/django-openid-auth-typeerror-openid-yadis-manager-yadisservicemanager-object-is 2018-11-06 13:08:10 +01:00
Oliver Falk
b2245ba8d1 Allow all 2018-09-24 13:02:01 +02:00
Lars Kruse
b07f413034 Reduce occurrences of bare exceptions
* replace bare exceptions with specific ones, if possible
* use "exc" instead of "e" as exception variable
  ("exc" is the most popular choice in the standard library)
2018-07-27 04:41:11 +02:00
Oliver Falk
32d093805c Add constant for maximum allowed unconfirmed emails (need to wire up in model/view/save later!) 2018-07-11 15:01:28 +02:00
Oliver Falk
38142b303d Merge branch 'devel' into 'master'
Merge in latest devel

See merge request oliver/ivatar!37
2018-07-11 08:15:01 +02:00
Oliver Falk
007021ce89 Correct FROM 2018-07-10 13:16:07 +02:00
clime
a4cb44ea79 PostgreSQL backend support 2018-07-10 10:16:46 +02:00
Oliver Falk
e44413a43a Make pylint happier 2018-07-03 13:05:47 +02:00
Oliver Falk
1a08887892 Add functionality to check OpenID/mail; Size already works, default URL not (yet) 2018-07-03 10:58:03 +02:00
Oliver Falk
65d989d59f Merge branch 'devel' into tools 2018-07-03 07:15:01 +02:00
Oliver Falk
2f980479a5 Add tools, first interface, no functionality yet 2018-07-02 14:26:09 +02:00
Oliver Falk
12f80ac721 No coverage here 2018-06-27 09:36:32 +02:00
Oliver Falk
93c7552a29 Change sender mail 2018-06-15 13:13:24 +02:00
Oliver Falk
6a4fce0177 Feature 'crop photo' 2018-06-14 14:20:10 +02:00
Oliver Falk
e29c17ff0e No mailgun related settings if test or collectstatic 2018-06-14 14:06:37 +02:00
Oliver Falk
42c5d1852f Fix #c9fa82f2, do not set mailgun backend on collectstatic 2018-06-14 11:00:57 +02:00