Commit Graph

4009 Commits

Author SHA1 Message Date
Benjamin Dauvergne f59ebfc7a3 use new password widget for password change (fixes #25045)
gitea/authentic/pipeline/head Build started... Details
2018-08-02 18:08:59 +02:00
Benjamin Dauvergne e7fa8c906d use new password widget in manager (#25045) 2018-08-02 18:08:53 +02:00
Benjamin Dauvergne 26befb8fe2 use new password widget in login form (#25045)
This commit also modify AuthenticationForm to remove explicit loading of
authentic2/js/js_seconds_until.html from login_password.html.
2018-08-02 18:08:49 +02:00
Benjamin Dauvergne 4a39fc64f2 prevent double loading of jQuery (#25045)
Popup dialog were broken by double loading of jQuery by gadjo/root.html
template. We override the gadjo-js block to empty it and we add the
javascript file expected by gadjo in the views default medias.
2018-08-02 18:08:44 +02:00
Emmanuel Cazenave 135b81c6fc use explicit in lookup (#25557) 2018-08-02 17:56:51 +02:00
Emmanuel Cazenave 38e2d61e07 use a python2 compatible pylint-django (#25568) 2018-08-02 17:55:50 +02:00
Emmanuel Cazenave 64766b7016 don't use context_instance in rendering functions (#25346) 2018-08-02 13:38:21 +02:00
Emmanuel Cazenave cecdc9adfd delete addtoblock and renderblock tags (#25361) 2018-08-02 13:35:08 +02:00
Emmanuel Cazenave ddcabf6372 delete superfluous template tag call (#25518) 2018-08-02 13:33:33 +02:00
Emmanuel Cazenave d024517025 use explicit in lookup (#25502)
Delete unused function using implicit in lookup.
2018-07-31 13:48:47 +02:00
Benjamin Dauvergne d7a2af17c3 allow overriding User.can_reset_password by hooks (fixes #25534)
This commit introduce the concept of an user flag, this flag can be
defined in many places:
* globally trough a setting named A2_USER_<FLAG>
* on the user object itself if there is a property user.<flag> which is
  not None
* by any hook returning a not None result and named a2_hook_user_<flag>
* for all users of an OU if the ou.<flag> is not None
2018-07-30 17:22:03 +02:00
Benjamin Dauvergne eeb93e79d3 custom_user: remove base_user (fixes #23272) 2018-07-30 15:09:13 +02:00
Emmanuel Cazenave 5088c18fca use django.template.context_processors (#25372) 2018-07-30 13:47:48 +02:00
Benjamin Dauvergne b84794bd28 ldap: warn about missing users on password reset (fixes #25530)
Instead of logging an error.
2018-07-30 11:57:39 +02:00
Benjamin Dauvergne ce90ea3bd4 settings: set all Lasso logs at the DEBUG level (fixes #22880)
Log domain of lasso has changed from lasso to Lasso and libxmlsec and
libxml2 errors now are logged in their own domains.
2018-07-27 11:20:22 +02:00
Frédéric Péters 3dc6b4aab4 api: mark all fields of OrganizationalUnit for serializer (#25405) 2018-07-24 11:44:15 +02:00
Frédéric Péters 69cc0ae605 misc: adjust width of ok checkmarks (#25404) 2018-07-23 16:14:22 +02:00
Frédéric Péters b69eb9bec2 misc: adjust style of new password help texts (#25404) 2018-07-23 14:40:55 +02:00
Frédéric Péters 8754e9b2b0 tests: add proper fix for test of validation error message (#25403) 2018-07-23 12:17:54 +02:00
Benjamin Dauvergne 9705aef9a6 tests: fix test folowing change in validation error message (#25403) 2018-07-23 11:44:11 +02:00
Frédéric Péters 5841264c29 update translation with new password error message 2018-07-23 11:08:11 +02:00
Frédéric Péters aa7d3df158 misc: use fixed error message for invalid passwords (#25403) 2018-07-23 11:06:45 +02:00
Benjamin Dauvergne 8ecae2514a update french translation (#22225) 2018-07-23 11:03:10 +02:00
Benjamin Dauvergne b6e41da2be templates: change wording for password change (fixes #22225) 2018-07-23 11:00:16 +02:00
Frédéric Péters ab267ddac5 translation: adjust matching password messages (#25409) 2018-07-23 09:51:04 +02:00
Benjamin Dauvergne 1020d50ed3 update french translation (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne c46822af58 use new password fields in registration form (fixes #24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne f36b480419 add new widget and fields for passwords (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 6a44c5f558 move all password related functions in authentic2.passwords (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne d3655cf16a move authentic2.widgets to authentic2.forms.widgets (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 4663e217ab create authentic2.forms package (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne e32621c1c7 api: allow empty password in validate-password (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 93457ecf44 api: do not do CSRF check on validate-password API (#24439)
This API is public.
2018-07-20 17:07:18 +02:00
Benjamin Dauvergne da0ab04ab0 templates: output form.media in base template (#24439)
It's the new habit downstream.
2018-07-20 17:07:18 +02:00
Emmanuel Cazenave c5c0764c05 use django.forms.utils (#25317) 2018-07-19 14:42:50 +02:00
Benjamin Dauvergne 8ed0beb8fa ldap: do not validate session stored settings (fixes #25369) 2018-07-19 14:19:31 +02:00
Frédéric Péters e87ba08146 misc: don't use addtoblock to add js_seconds_until.js (#25346) 2018-07-19 08:35:31 +02:00
Benjamin Dauvergne 6235bc1782 backends/ldap: convert to iterable before type checking (#25327)
Revert d11d86bb50.
2018-07-18 11:25:24 +02:00
Benjamin Dauvergne 773b9c8333 tests: fix NameError (introduced by #25182) 2018-07-18 11:08:04 +02:00
Frédéric Péters d11d86bb50 backends/ldap: don't set a default value for group{su,staff,active} (#25327) 2018-07-18 10:56:32 +02:00
Benjamin Dauvergne f3a8061893 update french translation (#24833) 2018-07-18 10:54:22 +02:00
Benjamin Dauvergne 291dc5e2f9 convert password validation code to new API (#24833) 2018-07-18 10:54:22 +02:00
Benjamin Dauvergne 35b3136ef4 add new API to validate passwords (fixes #24833)
POST /api/validate-password/ HTTP/1.1
Conten-Type: application/json

{"password": "whatever"}
200 Ok
Content-Type: application/json

{
  "result": 1,
  "ok": false,
  "checks": [
    {"label": "at least 1 digit", "result": false}
  ]
}

This API is public.
2018-07-18 10:54:22 +02:00
Emmanuel Cazenave 103acb8dea use stdlib OrderedDict (#25319) 2018-07-17 17:54:24 +02:00
Benjamin Dauvergne 38298c3192 api: add parameters to filter users by allowed services (fixes #22377) 2018-07-17 16:38:35 +02:00
Elias Showk 835e0cf940 replace django.utils.timezone.UTC by utc (#25313) 2018-07-17 16:26:10 +02:00
Benjamin Dauvergne 2f0ae6bacf idp_oidc: fix synchronization API calls when OIDC client use UUID identifier policy (fixes #25182) 2018-07-17 16:15:55 +02:00
Benjamin Dauvergne 24c35c5ce8 backends/ldap: revert setting a default value for url (#23698) 2018-07-17 16:05:14 +02:00
Emmanuel Cazenave 7d53bfcb3c delete some django < 1.8 compatiblity code (#25097) 2018-07-17 15:56:52 +02:00
Emmanuel Cazenave 5afd362bc3 quiet some RemovedInDjango19Warning warnings (#25222) 2018-07-17 15:55:51 +02:00