Commit Graph
160 Commits
Author SHA1 Message Date
Antoine Nguyen 17fc9db554 Removed useless code 2025-06-08 15:12:49 +02:00
Antoine Nguyen 0a001364d0 WIP: remove legacy interface 2025-06-08 15:12:48 +02:00
Antoine Nguyen 92b93fa6bf Deal with password scheme deprecation (crypt as of now)
Also display notifications in new admin.

see #3350
2024-11-29 14:15:46 +01:00
Antoine Nguyen f7f458c83c Few fixes 2024-07-10 14:59:43 +02:00
Antoine Nguyen a7bf3d3be9 Improved webauthn support 2024-07-06 16:22:03 +02:00
Antoine Nguyen 2cdb494213 Improved registration pages. 2024-07-05 18:37:08 +02:00
Antoine Nguyen bea57b33c7 Improved style of password recovery pages (SMS) 2024-06-28 11:55:58 +02:00
Antoine Nguyen 30132570e2 Improved errors display in login related pages 2024-06-27 09:57:04 +02:00
Antoine NguyenandSpitfireap f541669793 Compatibility with OIDC workflow 2024-06-22 19:45:56 +02:00
Antoine NguyenandSpitfireap df3c56f810 Improved login process 2024-06-22 19:45:55 +02:00
Antoine NguyenandSpitfireap 68ac5cba33 New style for old login page 2024-06-22 19:45:24 +02:00
Spitfireap 381e4c7be5 Added Webautn login
TODO: modify the middleware to certify the user has successfully used it...
2024-06-22 19:45:23 +02:00
Antoine NguyenandGitHub 11716f0a5c Merge pull request #3085 from QThans/patch-2
to avoid CSRF error due to multiple click
2023-10-20 11:33:08 +02:00
Antoine Nguyen 6fdb077ca5 Fixed XSS vulnerability when displaying form error messages. 2023-10-17 15:25:45 +02:00
Antoine Nguyen 2d33d34279 Fixed CSRF vulnerability on logout view 2023-10-13 16:43:51 +02:00
QIN LEIandGitHub 305b080259 to avoid CSRF error due to multiple click
If the network is terrible, the user clicks rapidly and many times, it will show a CSRF error because the last time click had the wrong CSRF token.
2023-10-06 15:20:20 +08:00
Spitap 39af0485f8 Imported to main repo 2022-12-05 16:57:38 +01:00
Gael Pasgrimaud be883a8349 set root_url js var in template so we can use a PATH_PREFIX without breaking the tfa js stuff 2022-08-18 15:56:17 +02:00
Antoine Nguyen 0fe8aa61c7 Deploy new admin interface. 2021-06-28 15:16:42 +02:00
Antoine Nguyen 591f9b9a1d Added drf-spectacular.
fix #2071
2020-11-09 20:55:40 +01:00
Antoine NguyenandGitHub a40d46db94 Feature/tfa (#2037)
* WIP: two-factor authentication.

* Added support for 2FA using TOTP devices.

see #1760 #1672 #1455

* Added documentation.

* Updated documentation.

* Added missing qrcode requirement.

* Fixed unit tests.
2020-10-21 10:42:56 +02:00
Antoine Nguyen cb0197c609 Retrieve password by SMS.
see #1877
2020-04-21 11:34:29 +02:00
Jérôme Lebleu 8d1f1e58ae Bump Django to 2.1 and rename view permissions
See: https://docs.djangoproject.com/en/stable/releases/2.1/

The main change is the addition of a view permission. To prevent
redundancy, the custom and current `view_` permissions are renamed to
use the new ones - e.g. `view_aliases` is renamed to `view_alias`. Only
`view_domain` is used to check permissions and `view_domains` is not
deleted in case customizations have been made by user - in such case
a manual squash is needed.
2020-01-13 14:24:25 +01:00
Jérôme Lebleu e0c7305149 Bump djangorestframework to 3.11 and move to OpenAPI
See: https://www.django-rest-framework.org/community/3.10-announcement/

CoreAPI is being deprecated and since 3.10, settings must be modified to
keep using CoreAPI schemas. This is especially required for the
documentation generation.

To prevent settings modification while upgrading Modoboa and to follow
the standard for modeling Web APIs, CoreAPI is removed. Instead, OpenAPI
is used to generate the schema and Swagger UI is used to render the
documentation as described here:

  https://www.django-rest-framework.org/topics/documenting-your-api/
2020-01-13 09:55:17 +01:00
Antoine Nguyen d90388f821 Updated JS requirements. 2018-10-16 14:52:26 +02:00
Antoine Nguyen f9341633c6 Added possibility to insert headers in menu. 2018-01-04 13:50:14 +01:00
Andrew Fyfe 892160d5aa updates for django 1.11 support
- MIDDLEWARE_CLASSES is replaced by MIDDLEWARE

- add MiddlewareMixin to modoboa middlewares

- on_delete will become a required parameter for ForeignKey()
  set it to the current default CASCADE

- on_delete will become a required parameter for OneToOneField()
  set it to the current default CASCADE

- reverse and reverse_lazy have moved to django.urls

- RadioChoiceInput widget has been removed, replace with HorizontalRadioSelect
2017-12-19 00:50:53 +00:00
Antoine NguyenandGitHub 98eea782a0 Generic transport editor. (#1309)
Generic transport editor.

see #1301

* Fixed unit test.

* Added unit tests.

* Fixed unit test.

* Added transport module to test list.

* Moved relay transport backend to appropriate app.

see #1301

* Added missing file.
2017-11-27 10:42:27 +01:00
Anthony Bourguignon 518603126f Add tabindex on popover help items.
Fixes #1248
2017-10-06 09:47:13 +02:00
Antoine Nguyen c6054066d5 Added password reset service.
see #1151
2017-06-22 11:24:42 +02:00
Antoine Nguyen e93a94b241 Few changes. 2017-04-20 15:06:44 +02:00
Antoine Nguyen 6a0b88c3d3 Replaced bootstrap-select by selectize.
see #1103
2017-04-20 14:35:54 +02:00
Antoine Nguyen 01f926ca95 Django 1.0 support.
see #1024
2017-02-10 14:29:21 +01:00
Yannick FillatrauandGitHub 826164ad36 Update progressbar.html
Fix typo preventing progressbar display.
2017-01-06 14:50:22 +01:00
Antoine Nguyen 3fb1c13f18 WIP
see #951
2016-10-28 15:48:08 +02:00
Christian Wiegand 169d07b8fa localization of email headers, added the datetime format settings in test_project settings.py with some docs 2016-10-06 14:49:16 +02:00
Antoine Nguyen 869061d191 Make sure dashboard menu entry is first. 2016-09-14 19:05:24 +02:00
Antoine Nguyen 9281c53fd1 Detail views for Account and Alias.
see #894
2016-07-03 16:50:17 +02:00
Antoine Nguyen 55c6678f53 WIP 2016-06-03 17:48:44 +02:00
Antoine Nguyen 68cb067317 Django 1.9 compat
see #867
2016-04-29 11:44:14 +02:00
Antoine Nguyen e1722ae09a Adding c3.js as a dependency. 2015-07-09 10:12:27 +02:00
Antoine Nguyen 5a5cf25f6c Set viewport on the login page.
fix #690
2015-03-11 10:35:21 +01:00
Antoine Nguyen 6f6da61225 Explicit domains and identities states.
fix #541
2014-12-03 16:25:37 +01:00
Antoine Nguyen 076d4f43b6 Few fixes.
see #574
2014-12-03 15:32:19 +01:00
Antoine Nguyen f04ad8b5bd Move modal primary buttons to the right.
fix #627
2014-11-24 18:14:07 +01:00
Antoine Nguyen de90b6b7d8 Fix tests runner with django 1.6 2014-11-18 21:09:51 +01:00
Antoine Nguyen d86e5fb80c Fix minor CSS issues and required django 1.6. 2014-11-17 18:09:17 +01:00
Antoine Nguyen 910c1f0dde Fixes.
see #585
2014-11-14 08:57:12 +01:00
Antoine Nguyen 70cc5ac2bc Few fixes. 2014-10-29 11:45:30 +01:00
Antoine Nguyen a2e039bc8e Few changes...
see #585
2014-10-23 15:49:30 +02:00