blender-id.git
21 hours agoMake emails unique case-insensitively master production
Anna Sirota [Wed, 8 Dec 2021 14:08:07 +0000 (15:08 +0100)]
Make emails unique case-insensitively

25 hours ago[Docs] Update copyright year
Anna Sirota [Wed, 8 Dec 2021 09:52:56 +0000 (10:52 +0100)]
[Docs] Update copyright year

25 hours agoPEP8, autoformatted by black
Anna Sirota [Wed, 8 Dec 2021 09:51:43 +0000 (10:51 +0100)]
PEP8, autoformatted by black

25 hours ago[T93542] [D13450] Allow users to manage OAuth apps they own outside Django admin
Anna Sirota [Wed, 8 Dec 2021 09:49:05 +0000 (10:49 +0100)]
[T93542] [D13450] Allow users to manage OAuth apps they own outside Django admin

44 hours ago[T93480] Length of password reset tokens changed
Anna Sirota [Tue, 7 Dec 2021 14:27:47 +0000 (15:27 +0100)]
[T93480] Length of password reset tokens changed

45 hours ago[T93480] Upgrade to Django 3.2
Anna Sirota [Tue, 7 Dec 2021 13:42:17 +0000 (14:42 +0100)]
[T93480] Upgrade to Django 3.2

2 days agoGenerate requirements.txt
Anna Sirota [Mon, 6 Dec 2021 12:28:05 +0000 (13:28 +0100)]
Generate requirements.txt

5 days agoMatch emails case-insensitively when logging in
Anna Sirota [Fri, 3 Dec 2021 15:37:06 +0000 (16:37 +0100)]
Match emails case-insensitively when logging in

6 days ago[T93543] Include docs into docker image, build them during deploy
Anna Sirota [Fri, 3 Dec 2021 09:36:35 +0000 (10:36 +0100)]
[T93543] Include docs into docker image, build them during deploy

7 days agoMinor fixes to the custom form template filter
Anna Sirota [Wed, 1 Dec 2021 14:12:52 +0000 (15:12 +0100)]
Minor fixes to the custom form template filter

7 days agoAdd padding in to application list in Applications page
Anna Sirota [Wed, 1 Dec 2021 14:19:32 +0000 (15:19 +0100)]
Add padding in to application list in Applications page

7 days agoFix dismissible alerts used to display messages
Anna Sirota [Thu, 2 Dec 2021 10:21:56 +0000 (11:21 +0100)]
Fix dismissible alerts used to display messages

8 days agoAdd CREATEDB in the notes on DB setup, otherwise tests cannot run
Anna Sirota [Tue, 30 Nov 2021 15:18:49 +0000 (16:18 +0100)]
Add CREATEDB in the notes on DB setup, otherwise tests cannot run

8 days ago[T93212] Update docs and remove MySQL dependencies
Anna Sirota [Tue, 30 Nov 2021 14:13:07 +0000 (15:13 +0100)]
[T93212] Update docs and remove MySQL dependencies

9 days agoConfigure a maintenance flag for a quick way to enable maintenance mode in nginx
Anna Sirota [Tue, 30 Nov 2021 10:56:20 +0000 (11:56 +0100)]
Configure a maintenance flag for a quick way to enable maintenance mode in nginx

9 days agoMinor fix: docker entrypoint looks for UWSGI PID file in the wrong place
Anna Sirota [Tue, 30 Nov 2021 10:55:29 +0000 (11:55 +0100)]
Minor fix: docker entrypoint looks for UWSGI PID file in the wrong place

2 weeks agoUpdate BWA
Pablo Vazquez [Tue, 23 Nov 2021 13:12:19 +0000 (14:12 +0100)]
Update BWA

2 weeks agoUpdate BWA
Pablo Vazquez [Tue, 23 Nov 2021 11:58:04 +0000 (12:58 +0100)]
Update BWA

2 weeks agoUI: Add top spacing to BID page content
Anna Sirota [Tue, 23 Nov 2021 11:14:37 +0000 (12:14 +0100)]
UI: Add top spacing to BID page content

2 weeks agoUI: Layout and style update on index
Pablo Vazquez [Fri, 19 Nov 2021 15:47:02 +0000 (16:47 +0100)]
UI: Layout and style update on index

2 weeks agoUI: Add global navigation bar
Pablo Vazquez [Fri, 19 Nov 2021 15:46:14 +0000 (16:46 +0100)]
UI: Add global navigation bar

2 weeks agoProfile: Swap position of Save Changes
Pablo Vazquez [Fri, 19 Nov 2021 15:31:48 +0000 (16:31 +0100)]
Profile: Swap position of Save Changes

And use our own Fontutti icon instead of SVG.

2 weeks agoUpdate BWA
Pablo Vazquez [Fri, 19 Nov 2021 15:26:53 +0000 (16:26 +0100)]
Update BWA

2 weeks agoAdd suport for PostgreSQL without removing support for MySQL
Anna Sirota [Fri, 19 Nov 2021 11:52:37 +0000 (12:52 +0100)]
Add suport for PostgreSQL without removing support for MySQL

2 weeks agoValidate the given email in check user API endpoint
Anna Sirota [Fri, 19 Nov 2021 09:42:23 +0000 (10:42 +0100)]
Validate the given email in check user API endpoint

In tests with "bad" emails, psql fails due to null characters,
and, regardless, these should not reach the database.

2 weeks agoUI: Fix missing Sass variables
Pablo Vazquez [Thu, 18 Nov 2021 15:08:20 +0000 (16:08 +0100)]
UI: Fix missing Sass variables

And style tweak to policy announcement.

2 weeks agoUpdate BWA
Pablo Vazquez [Thu, 18 Nov 2021 15:05:49 +0000 (16:05 +0100)]
Update BWA

2 weeks agoUI: Fix fonts loading
Pablo Vazquez [Thu, 18 Nov 2021 15:05:31 +0000 (16:05 +0100)]
UI: Fix fonts loading

2 weeks agoUI: Remove Font Awesome
Pablo Vazquez [Thu, 18 Nov 2021 15:04:28 +0000 (16:04 +0100)]
UI: Remove Font Awesome

3 weeks agoReCAPTCHA shouldn't be required when there are no credentials provided in settings
Anna Sirota [Thu, 18 Nov 2021 09:51:37 +0000 (10:51 +0100)]
ReCAPTCHA shouldn't be required when there are no credentials provided in settings

4 weeks agoPass X-Forwarded-For to uWSGI
Anna Sirota [Wed, 10 Nov 2021 11:46:31 +0000 (12:46 +0100)]
Pass X-Forwarded-For to uWSGI

4 weeks agoCheck X-Forwarded-For as well when saving login IP
Anna Sirota [Wed, 10 Nov 2021 11:44:55 +0000 (12:44 +0100)]
Check X-Forwarded-For as well when saving login IP

4 weeks agoUpdate example settings to make it work with sentry-sdk
Anna Sirota [Wed, 10 Nov 2021 10:49:42 +0000 (11:49 +0100)]
Update example settings to make it work with sentry-sdk

4 weeks agoMigrate from raven to sentry-sdk
Anna Sirota [Wed, 10 Nov 2021 10:32:54 +0000 (11:32 +0100)]
Migrate from raven to sentry-sdk

6 weeks agoReplace mentions of Cloud with Studio
Anna Sirota [Thu, 21 Oct 2021 16:47:50 +0000 (18:47 +0200)]
Replace mentions of Cloud with Studio

6 weeks agoFix button in the privacy policy page
Anna Sirota [Wed, 20 Oct 2021 14:31:41 +0000 (16:31 +0200)]
Fix button in the privacy policy page

6 weeks agoRemove mentions of Blender Network
Anna Sirota [Thu, 21 Oct 2021 16:31:25 +0000 (18:31 +0200)]
Remove mentions of Blender Network

6 weeks agoRevert "Add djhtml pre-commit hook and upgrade assets_shared"
Anna Sirota [Thu, 21 Oct 2021 16:11:27 +0000 (18:11 +0200)]
Revert "Add djhtml pre-commit hook and upgrade assets_shared"

This reverts commit 306f7f0bdd06a03d27288d931627050235198827.

6 weeks agoRevert "fix various pages"
Anna Sirota [Thu, 21 Oct 2021 16:11:26 +0000 (18:11 +0200)]
Revert "fix various pages"

This reverts commit 4a779b11d017208279d314c05a1ce050467b7288.

6 weeks agoRevert "Update version of assets_shared"
Anna Sirota [Thu, 21 Oct 2021 16:11:25 +0000 (18:11 +0200)]
Revert "Update version of assets_shared"

This reverts commit 3a8dee980db5a8c729c77a28003354527917aff4.

6 weeks agoRevert "Remove refrences to Blender Network or Certification"
Anna Sirota [Thu, 21 Oct 2021 16:11:25 +0000 (18:11 +0200)]
Revert "Remove refrences to Blender Network or Certification"

This reverts commit b4324841796d6dbbf94847a4e573a1e3a4344765.

6 weeks agoRevert "Update BWA to master"
Anna Sirota [Thu, 21 Oct 2021 16:11:24 +0000 (18:11 +0200)]
Revert "Update BWA to master"

This reverts commit 62bb50c904740d6d0311fcadacdc46077f3c3389.

6 weeks agoRevert "Fix HTML/CSS of alerts in the profile"
Anna Sirota [Thu, 21 Oct 2021 16:11:24 +0000 (18:11 +0200)]
Revert "Fix HTML/CSS of alerts in the profile"

This reverts commit 13dd480bf606cd6e40299d14dca8eda9e3dcff67.

6 weeks agoRevert "Minor changes to CSS of Privacy Policy banner"
Anna Sirota [Thu, 21 Oct 2021 16:11:23 +0000 (18:11 +0200)]
Revert "Minor changes to CSS of Privacy Policy banner"

This reverts commit 65d8dc65e2e0a6c8c0885b6c79a4f66fbd4da27c.

6 weeks agoRevert "Fix button in the privacy policy page"
Anna Sirota [Thu, 21 Oct 2021 16:11:21 +0000 (18:11 +0200)]
Revert "Fix button in the privacy policy page"

This reverts commit c35cbe6231e1f4eb68ece6f124069293b7d3b685.

7 weeks agoFix button in the privacy policy page
Anna Sirota [Wed, 20 Oct 2021 14:31:41 +0000 (16:31 +0200)]
Fix button in the privacy policy page

7 weeks agoMinor changes to CSS of Privacy Policy banner
Anna Sirota [Wed, 20 Oct 2021 14:31:21 +0000 (16:31 +0200)]
Minor changes to CSS of Privacy Policy banner

7 weeks agoFix HTML/CSS of alerts in the profile
Anna Sirota [Wed, 20 Oct 2021 14:30:29 +0000 (16:30 +0200)]
Fix HTML/CSS of alerts in the profile

7 weeks agoUpdate BWA to master
Mike Newbon [Wed, 20 Oct 2021 14:17:29 +0000 (16:17 +0200)]
Update BWA to master

7 weeks agoPin black to a latest version to try around SolverProblemError
Anna Sirota [Fri, 15 Oct 2021 14:08:01 +0000 (16:08 +0200)]
Pin black to a latest version to try around SolverProblemError

7 weeks agoUpgrade jsmin to 3.0.0
Anna Sirota [Fri, 15 Oct 2021 14:01:09 +0000 (16:01 +0200)]
Upgrade jsmin to 3.0.0

Version 2.2.2 is not longer compatible with setuptools
due to use of 2to3. Version 3.0.0 removes support of Python 2.
See https://github.com/tikitu/jsmin/issues/33 for more details.

7 weeks agoUnpin black to try around SolverProblemError
Anna Sirota [Fri, 15 Oct 2021 14:00:01 +0000 (16:00 +0200)]
Unpin black to try around SolverProblemError

8 weeks agoRemove refrences to Blender Network or Certification
Mike Newbon [Fri, 23 Jul 2021 13:14:04 +0000 (15:14 +0200)]
Remove refrences to Blender Network or Certification

8 weeks agoUpdate version of assets_shared
Mike Newbon [Wed, 13 Oct 2021 12:16:33 +0000 (14:16 +0200)]
Update version of assets_shared

8 weeks agofix various pages
Mike Newbon [Thu, 22 Jul 2021 16:13:03 +0000 (18:13 +0200)]
fix various pages

8 weeks agoAdd djhtml pre-commit hook and upgrade assets_shared
Mike Newbon [Wed, 21 Jul 2021 16:04:22 +0000 (18:04 +0200)]
Add djhtml pre-commit hook and upgrade assets_shared

3 months agoMake sure UIDs/GIDs created during image build are always the same
Anna Sirota [Fri, 3 Sep 2021 09:08:57 +0000 (11:08 +0200)]
Make sure UIDs/GIDs created during image build are always the same

3 months agoMake sure /etc/aliases.lmdb exists before postfix starts
Anna Sirota [Thu, 2 Sep 2021 15:52:57 +0000 (17:52 +0200)]
Make sure /etc/aliases.lmdb exists before postfix starts

3 months agoSilence uWSGI's write errors generated by timing out clients
Anna Sirota [Thu, 2 Sep 2021 15:38:45 +0000 (17:38 +0200)]
Silence uWSGI's write errors generated by timing out clients

3 months agoUpgrade alpine to 3.14.2, Python to 3.9 and configure postfix
Anna Sirota [Thu, 2 Sep 2021 15:31:43 +0000 (17:31 +0200)]
Upgrade alpine to 3.14.2, Python to 3.9 and configure postfix

3 months agoAdd another root alias
Anna Sirota [Thu, 2 Sep 2021 14:43:02 +0000 (16:43 +0200)]
Add another root alias

3 months agoPin poetry version due to yet another poetry issue
Anna Sirota [Thu, 2 Sep 2021 13:33:56 +0000 (15:33 +0200)]
Pin poetry version due to yet another poetry issue

3 months agoCatch more errors when trying to reach reCAPTCHA
Anna Sirota [Tue, 31 Aug 2021 14:43:04 +0000 (16:43 +0200)]
Catch more errors when trying to reach reCAPTCHA

3 months agoAdd admin action "Send password reset mails"
Anna Sirota [Mon, 30 Aug 2021 10:10:32 +0000 (12:10 +0200)]
Add admin action "Send password reset mails"

3 months agoModify link to user access tokens: use user_id directly
Anna Sirota [Mon, 30 Aug 2021 09:26:43 +0000 (11:26 +0200)]
Modify link to user access tokens: use user_id directly

3 months agoAdd Find in Cloud button that links to the new Cloud admin
Anna Sirota [Mon, 30 Aug 2021 09:25:02 +0000 (11:25 +0200)]
Add Find in Cloud button that links to the new Cloud admin

3 months agoRemove Refresh from Store button from user admin
Anna Sirota [Mon, 30 Aug 2021 09:24:10 +0000 (11:24 +0200)]
Remove Refresh from Store button from user admin

3 months agoUpdate sorl-thumbnails to 12.7.0 (fix "cannot write mode RGBA as JPEG")
Anna Sirota [Mon, 30 Aug 2021 08:38:19 +0000 (10:38 +0200)]
Update sorl-thumbnails to 12.7.0 (fix "cannot write mode RGBA as JPEG")

3 months agoWork around poetry's ModuleNotFoundError: No module named 'virtualenv'
Anna Sirota [Fri, 20 Aug 2021 16:47:12 +0000 (18:47 +0200)]
Work around poetry's ModuleNotFoundError: No module named 'virtualenv'

3 months agoAdd date_deletion_requested to payload of CheckUser endpoint
Anna Sirota [Fri, 20 Aug 2021 10:06:43 +0000 (12:06 +0200)]
Add date_deletion_requested to payload of CheckUser endpoint

4 months agoMention custom LogEntry index in the docs
Anna Sirota [Wed, 14 Jul 2021 09:15:40 +0000 (11:15 +0200)]
Mention custom LogEntry index in the docs

5 months agoFewer warnings generated by reCAPTCHA
Anna Sirota [Tue, 29 Jun 2021 08:41:33 +0000 (10:41 +0200)]
Fewer warnings generated by reCAPTCHA

5 months agoCloses T86495 Simplify Blender ID registration
Anna Sirota [Tue, 29 Jun 2021 08:22:10 +0000 (10:22 +0200)]
Closes T86495 Simplify Blender ID registration

D11707: Instead of requiring email verification before logging in,
allow setting the password during registration and log in right away.
Score-based reCAPTCHA is used in the form to deter obvious abuse.

5 months agoFix ugettext deprecation warnings and PEP8
Anna Sirota [Thu, 3 Jun 2021 10:35:22 +0000 (12:35 +0200)]
Fix ugettext deprecation warnings and PEP8

5 months agoReindent with black, fix PEP8 errors
Anna Sirota [Thu, 3 Jun 2021 09:24:59 +0000 (11:24 +0200)]
Reindent with black, fix PEP8 errors

6 months agoAdd pre-commit hooks: black, flake8 and eslint
Anna Sirota [Thu, 3 Jun 2021 09:19:33 +0000 (11:19 +0200)]
Add pre-commit hooks: black, flake8 and eslint

6 months agoUpgrade to Django 3.0
Anna Sirota [Wed, 2 Jun 2021 13:45:42 +0000 (15:45 +0200)]
Upgrade to Django 3.0

django-braces had to be removed: support of Django 3.0/3.1
is still an ongoing task:
https://github.com/brack3t/django-braces/pull/265

sorl-thumbnails and debugtoolbar had to be updated due to
similar `ImportError`s, which they had fixed already.

8 months agoFix wording on the account deletion page
Anna Sirota [Tue, 6 Apr 2021 13:23:49 +0000 (15:23 +0200)]
Fix wording on the account deletion page

8 months agoChange wording on the account deletion page
Anna Sirota [Tue, 6 Apr 2021 13:19:47 +0000 (15:19 +0200)]
Change wording on the account deletion page

8 months agoAdd new role flag to the admin filters
Anna Sirota [Tue, 6 Apr 2021 13:19:16 +0000 (15:19 +0200)]
Add new role flag to the admin filters

8 months agoDon't allow deleting accounts with active subscriptions D10464
Anna Sirota [Fri, 26 Mar 2021 10:34:37 +0000 (11:34 +0100)]
Don't allow deleting accounts with active subscriptions D10464

Store expects all updates it sends to Blender ID to be handled sequentially and stalls when anything goes wrong,
e.g. if Blender ID cannot find a user record by an email because it's been anonymized.
To avoid this happening in the future, account deletion flow should check more than just staff flags,
and not allow deletion of accounts with a cloud_subscriber role.
This would mean that a user will have to wait for their paid subscription to be
over after they'd cancelled it in order to be able to delete an account in Blender ID.

9 months agoMake password reset flow look like the rest of Blender ID
Anna Sirota [Thu, 25 Feb 2021 17:24:20 +0000 (18:24 +0100)]
Make password reset flow look like the rest of Blender ID

Overrides Django admin templates previously used for
password reset flow.

9 months agoSend an email after account deletion is requested
Anna Sirota [Thu, 25 Feb 2021 17:02:15 +0000 (18:02 +0100)]
Send an email after account deletion is requested

Adds a simple no-action-required email, that is sent to
confirm that the account deletion request is being processed.

9 months agoAdd a flake8 section
Anna Sirota [Wed, 24 Feb 2021 17:45:25 +0000 (18:45 +0100)]
Add a flake8 section

9 months agoMove bid_* templates into their respective app dirs
Anna Sirota [Wed, 24 Feb 2021 16:42:40 +0000 (17:42 +0100)]
Move bid_* templates into their respective app dirs

Blender ID has a 'templates' directory which is useful
for overriding templates of contrib apps, such as admin
without having to change order of `INSTALLED_APPS`.
However it also contains templates that belong to Blender ID apps,
such as `templates/bid_api`, `templates/bid_main`
and email templates which all belong to `bid_main`.

9 months agoWork around ModuleNotFoundError: No module named 'importlib_metadata'
Anna Sirota [Wed, 24 Feb 2021 14:43:47 +0000 (15:43 +0100)]
Work around ModuleNotFoundError: No module named 'importlib_metadata'

Add `importlib_metadata` as an explicit non-dev dependency,
to avoid poetry accidentally uninstalling it:
https://github.com/python-poetry/poetry/issues/1487#issuecomment-551529368

9 months agoFix entrypoint.sh
Sybren A. Stüvel [Tue, 23 Feb 2021 17:20:12 +0000 (18:20 +0100)]
Fix entrypoint.sh

Poetry refuses to `poetry run` from the virtualenv, which is fixed by
just running with `python3` from the virtualenv instead.

9 months agoFix: running `manage.py collectstatic` no longer requires Poetry
Sybren A. Stüvel [Tue, 23 Feb 2021 16:56:05 +0000 (17:56 +0100)]
Fix: running `manage.py collectstatic` no longer requires Poetry

Instead of running via `poetry run`, we can just run with the Python
binary from the virtualenv.

9 months agoFix deployment breaking on the Cryptography package requiring Rust
Sybren A. Stüvel [Tue, 23 Feb 2021 16:54:08 +0000 (17:54 +0100)]
Fix deployment breaking on the Cryptography package requiring Rust

As of Cryptography 3.4 it requires the Rust compiler to build the packge.
Instead of installing that, we pin the version to the last 3.3 release.

This also changes slightly how Poetry is installed on the Docker image.
Instead of installing globally, it's now installed inside the virtualenv
itself. This generally produces less issues on development machines,
and should work fine on the server as well.

9 months agoDeletion request: add warning that a new account cannot be created
Sybren A. Stüvel [Tue, 23 Feb 2021 16:08:49 +0000 (17:08 +0100)]
Deletion request: add warning that a new account cannot be created

Add a warning that, after requesting account deletion, it won't be
possible to create a new account with the same email address, until the
deletion request has been handled.

9 months agoDeletion request: only show linked apps if there are any
Sybren A. Stüvel [Tue, 23 Feb 2021 16:06:34 +0000 (17:06 +0100)]
Deletion request: only show linked apps if there are any

Only show "The following applications are connected to your Blender ID
account" when there are actually apps to display there.

9 months agoDocument account deletion
Anna Sirota [Fri, 19 Feb 2021 16:11:26 +0000 (17:11 +0100)]
Document account deletion

10 months agoFix switch user HTML
Mike Newbon [Thu, 4 Feb 2021 15:44:02 +0000 (16:44 +0100)]
Fix switch user HTML

10 months agoUpdated BWA and UI improvements
Anna Sirota [Thu, 4 Feb 2021 15:27:03 +0000 (16:27 +0100)]
Updated BWA and UI improvements

10 months agoprocess_deletion_requests should skip already processed, closes T85333
Anna Sirota [Wed, 3 Feb 2021 15:04:32 +0000 (16:04 +0100)]
process_deletion_requests should skip already processed, closes T85333

10 months agoRemove pug templates and gulp; use blender-basico D10251
Anna Sirota [Wed, 3 Feb 2021 14:26:35 +0000 (15:26 +0100)]
Remove pug templates and gulp; use blender-basico D10251

10 months agoFix tests failing if PREFERRED_SCHEME setting is overriden locally
Anna Sirota [Thu, 28 Jan 2021 17:29:48 +0000 (18:29 +0100)]
Fix tests failing if PREFERRED_SCHEME setting is overriden locally

10 months agoCommand for processing deletion requests, closes T82969 D10170
Anna Sirota [Thu, 28 Jan 2021 13:34:26 +0000 (14:34 +0100)]
Command for processing deletion requests, closes T82969 D10170

10 months agoExpire and revoke user tokens when account deletion is requested D10138
Anna Sirota [Tue, 19 Jan 2021 15:10:25 +0000 (16:10 +0100)]
Expire and revoke user tokens when account deletion is requested D10138

10 months agoCloses D10095: Implement user-facing side of account deletion
Anna Sirota [Thu, 14 Jan 2021 12:47:25 +0000 (13:47 +0100)]
Closes D10095: Implement user-facing side of account deletion

Adds a section in Blender ID profile where account deletion can be requested.
After deletion is requested, the following happens Blender ID:

    1. user is deactivated → it's no longer possible to login into Blender ID or via Blender ID;
    2. date of deletion is saved for a possibility of a grace period, both for the sake of the person requesting deletion and the dependant applications;
    3. user-modified webhook is called and its payload contains the non-null deletion date.

Applications subscribing to the webhook handle this event at their own discretion.