From 36fae27a9e60fa57f671ff3feb628efb0bfc16b7 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Thu, 17 Mar 2022 21:39:22 +0530 Subject: [PATCH] 1.0.0 release --- CHANGES.rst | 84 ++++++++++++++++++++++++++++++-------- openwisp_users/__init__.py | 2 +- 2 files changed, 68 insertions(+), 18 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index d9f0bf66..1ee41a45 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,36 +1,86 @@ Changelog ========= -Version 0.6.0 [unreleased] +Version 1.0.0 [2022-03-19] -------------------------- Features ~~~~~~~~ -- Allowed authentication with email or phone number, - see `Authentication Backend `_ -- Added possibility to filter users by their organization in - the user administration section -- Added phone number parsing to the authentication backend. - The value inserted by users as their identifier is parsed with the ``phonenumbers`` - library to understand if it's a phone number, in which case the phone number - lookup is given priority. - This also allows recognizing the phone number if it contains additional - characters like spaces, dashes or dots. -- If any international prefix is specified in the setting - ``OPENWISP_USERS_AUTH_BACKEND_AUTO_PREFIXES``, the authentication backend - tries prepending the listed prefixes when parsing numbers, so that users - can authenticate by typing only their national phone number. +- Added `UsersAuthenticationBackend class + `_ + that allows users to authenticate using either email, phone_number or username. +- Added the possibility to filter users by their organization in + the user administration section. +- Added `REST API endpoints for openwisp-users + `_. +- Added various `Django REST Framework mixins and utilities + `_ + which allow to implement. +- Added `DRF permission classes + `_. +- Added `passwordless authentication backend for REST APIs + `_. +- Added ``OrganizationInvitation`` model. +- Added `email verification success view + `_. +- Added logout success view. Changes ~~~~~~~ -- Improved or removed empty label for organization field +- `Authentication REST API endpoints are now enabled by default + `_. +- Following changes have been made to the User model: + + - Increased max length of `User.location field + `_. + - Added `User.birth_date field + `_. + - Added `User.notes field + `_. + - Added `User.language field + `_. + - Made `User.email case insensitive + `_. + Email addresses will always get converted to lower case before + storage and comparison. + +- Updated ``OrganizationOwnerInline`` to use ``raw_id`` field for + ``organization_user`` field. +- Updated ``OrganizationUserInline`` to use ``autocomplete`` field + for ``organization`` field. +- **Backward incompatible:** removed `custom permission helpers + `_. +- **Backward incompatible:** the REST API endpoint ``/api/v1/user/token/`` + has been changed to ``/api/v1/users/token/`` for consistency + with the rest of the API. + +**Dependencies**: + +- Dropped support for Django ``2.2.x``. +- Dropped support for Python ``3.6``. +- Added support for Python ``3.8`` and Python ``3.9``. +- Added support for Django ``3.2.x`` and ``4.0.x``. +- Bumped ``django-allauth~=0.46.0``. +- Bumped ``django-organizations~=2.0.1`` +- Bumped ``django-phonenumber-field~=6.0.0``. +- Bumped ``openwisp-utils~=1.0.0``. +- Bumped ``swapper~=1.3.0`` +- Added ``django-sesame~=2.4.0``. Bugfixes ~~~~~~~~ -N/A +- Fixed `internal server error on "/accounts/login/" page + `_ + when the social account app is disabled. +- Fixed `error on restoring "Group" object with django-reversion + `_. +- Fixed `error on visiting Django admin URL for non-existing users + `_. +- Fixed `organization managers could escalate their privileges to superuser + `_. Version 0.5.1 [2020-12-13] -------------------------- diff --git a/openwisp_users/__init__.py b/openwisp_users/__init__.py index 4d2a49a8..cb813ed5 100644 --- a/openwisp_users/__init__.py +++ b/openwisp_users/__init__.py @@ -1,4 +1,4 @@ -VERSION = (0, 6, 0, 'alpha') +VERSION = (1, 0, 0, 'final') __version__ = VERSION # alias default_app_config = 'openwisp_users.apps.OpenwispUsersConfig'