Benjamin Dauvergne
e37bb44e87
profile_forms: apply login-password user filters to the password-reset form ( fixes #20455 )
2017-12-06 11:07:42 +01:00
Benjamin Dauvergne
645f5b4d54
tests: move test on password-reset functionality ( #20455 )
2017-12-06 11:07:41 +01:00
Frédéric Péters
ef9e9fd32c
translation fix
2017-12-04 20:25:15 +01:00
Benjamin Dauvergne
d547f33457
forms: only compute seconds_to_wait if there is a username ( fixes #20405 )
2017-12-04 12:00:20 +01:00
Benjamin Dauvergne
29a101cb40
forms: show real waiting time in authentication form ( fixes #20352 )
...
We shorten waiting time by A2_LOGIN_EXPONENTIAL_RETRY_TIMEOUT_MIN_DURATION.
2017-12-01 10:28:20 +01:00
Benjamin Dauvergne
233ef1c83f
manager: remove all search forms titles ( fixes #20164 )
2017-12-01 10:28:20 +01:00
Benjamin Dauvergne
307da1b13e
manager: log error when select field is empty due to missing permissions ( #20372 )
...
I also simplified usage of logging in this module.
2017-12-01 10:28:20 +01:00
Benjamin Dauvergne
b7e525cb07
profile_forms: add setting for random reset of password on reset password requests ( fixes #20127 )
2017-11-29 08:56:40 +01:00
Benjamin Dauvergne
a210f4a838
manager: fix call to manager-delete-user event's hooks ( fixes #20339 )
2017-11-29 08:55:41 +01:00
Benjamin Dauvergne
84e2ec679e
rework use of exponential_retry_timeout by login form ( fixes #20323 )
...
- full behaviour is moved in a subclass of
django.contrib.auth.forms.AuthenticationForm in authentic2.forms
- keys is now built using REMOTE_ADDR and username
- behaviour changed as the countdown is only shown on a POST not just by
displaying the form (on a GET)
2017-11-28 16:46:27 +01:00
Benjamin Dauvergne
8d6c197d6a
tox.ini: force pytest>=3.3.0 remove pytest-catchlog ( fixes #20326 )
2017-11-28 16:46:27 +01:00
Benjamin Dauvergne
06fdf0f301
update french translations ( #19681 )
2017-11-27 00:09:34 +01:00
Benjamin Dauvergne
18212ca5dd
manager: show generic error message in front of forms if there are field errors ( fixes #19681 )
2017-11-27 00:07:01 +01:00
Benjamin Dauvergne
8d8dcd00e4
views: add setting to redirect authenticated users to homepage on access to login page ( fixes #20257 )
2017-11-27 00:07:01 +01:00
Benjamin Dauvergne
f11d6fa999
manager: allow setting a site title for the manager ( #20242 )
2017-11-23 16:48:08 +01:00
Benjamin Dauvergne
a1417cb452
attribute_kinds: remove +33 from french translation of phone number example ( fixes #20238 )
2017-11-23 14:16:07 +01:00
Benjamin Dauvergne
508983fc09
ldap_backend: paginate ldap search results ( fixes #20129 )
2017-11-23 13:48:37 +01:00
Benjamin Dauvergne
f33b0167ba
manager: review all page titles ( fixes #20126 )
2017-11-21 17:00:49 +01:00
Benjamin Dauvergne
1c14005934
update french translation ( #19416 )
2017-11-21 16:28:40 +01:00
Benjamin Dauvergne
8c67ef4074
registration: pep8ness ( #19416 )
2017-11-21 16:28:40 +01:00
Benjamin Dauvergne
9a5bc18a87
registration: send a registration success email ( fixes #19416 )
2017-11-21 16:28:40 +01:00
Benjamin Dauvergne
da39574b9e
registration: factorize registration success ( #19416 )
2017-11-21 16:27:38 +01:00
Benjamin Dauvergne
c46c138e39
manager: fix typo in role_views ( fixes #20183 )
2017-11-21 12:11:33 +01:00
Benjamin Dauvergne
39c8cbb989
views: fix bug introduced in EmailChangeVerifyView by 16afddc6b9
( fixes #20186 )
...
Ref #19712
2017-11-21 11:20:26 +01:00
Benjamin Dauvergne
95add8fba7
tests: factorize extraction of links from outbound mails ( #20186 )
2017-11-21 11:20:25 +01:00
Benjamin Dauvergne
6b762fc275
manager: fix removal of user's OU field from edit form ( fixes #20126 )
2017-11-20 12:32:38 +01:00
Benjamin Dauvergne
e654a4d910
manager: re-initialize select2 fields after an ajax update ( fixes #20161 )
2017-11-20 10:58:26 +01:00
Benjamin Dauvergne
173325b2b2
misc: move javascript out of logout.html content block ( fixes #9197 )
2017-11-17 18:04:51 +01:00
Paul Marillonnet
d16c32cf8a
saml/admin L10N : SAML provider metadata fields ( #16314 )
2017-11-17 17:58:25 +01:00
Paul Marillonnet
1a7336f39f
saml/admin I18N : SAML provider metadata fields ( #16314 )
2017-11-17 17:50:42 +01:00
Paul Marillonnet
988e3b1c12
password reset request l10n ( #16298 )
2017-11-17 17:18:50 +01:00
Paul Marillonnet
f3131e4373
profile_views: help message for password reset requests ( #16298 )
2017-11-17 17:16:20 +01:00
Benjamin Dauvergne
e4e1bccdf3
manager: hide roles informations in user detail view if useless ( fixes #20128 )
...
Also add a new behaviour to the .authorize() method of manager views: if it
returns a response, it hijack the normal response from the view.
2017-11-17 16:55:22 +01:00
Benjamin Dauvergne
711389c526
update french translation ( #19712 )
2017-11-17 16:55:15 +01:00
Benjamin Dauvergne
16afddc6b9
views: enforce A2_EMAIL_IS_UNIQUE on email change ( fixes #19712 )
2017-11-17 16:52:08 +01:00
Benjamin Dauvergne
2ad841c017
forms: validate new email is different from current one ( #19712 )
2017-11-17 16:52:08 +01:00
Benjamin Dauvergne
d11bfb5534
profile_urls: call event hook password-change ( fixes #20141 )
2017-11-17 16:52:08 +01:00
Benjamin Dauvergne
c8a6d06854
manager: deprecate ROLES_SHOW_PERMISSIONS ( fixes #20130 )
...
It's now handled through the permission a2_rbac.admin_permission which only
superusers have.
2017-11-17 16:52:08 +01:00
Benjamin Dauvergne
a1d9f785e4
tests: fix hooks fixture ( #20100 )
2017-11-17 16:52:08 +01:00
Josue Kouka
52610ad76f
misc: oidc remove useless sub creation ( #20049 )
2017-11-17 11:40:41 +01:00
Thomas NOËL
4be465484e
debian: suggests postgresql instead of recommend it ( #20000 )
2017-11-17 11:12:02 +01:00
Paul Marillonnet
3d2117ad1b
French translation update ( #20102 )
2017-11-17 10:27:33 +01:00
Paul Marillonnet
5e2d4d2b84
improve password creation help message ( #20102 )
2017-11-17 10:25:48 +01:00
Frédéric Péters
8605f8a3cb
settings: get select2 from local xstatic copy ( #16814 )
2017-11-17 09:25:09 +04:00
Benjamin Dauvergne
7a53f3ff43
do not apply user filters to delegated authentications ( fixes #19597 )
2017-11-16 23:49:18 +01:00
Benjamin Dauvergne
05a778b717
auth_ssl: clean code ( #19597 )
2017-11-16 16:29:13 +01:00
Benjamin Dauvergne
4aec4f62cb
add settings to filter user authorized to authenticate ( fixes #19597 )
...
Added:
- A2_USER_FILTER and A2_USER_EXCLUDE settings, contains kwargs for
User.filter() and User.exclude(),
- two helper methods for backends: authentic2.backend.get_user_queryset() and
authentic2.backend.is_user_authenticable(),
- all backends modified to use those.
2017-11-16 16:29:13 +01:00
Benjamin Dauvergne
1c68e6730b
idp_oidc: change french translation ( #20107 )
2017-11-16 16:26:23 +01:00
Benjamin Dauvergne
2df5e4644c
add a service field to login and registration view ( fixes #20100 )
...
It should contain the slug of the service from which the user was coming before
requiring login or registration. It's passed to the 'login' and 'registration'
event hooks.
2017-11-16 16:26:23 +01:00
Benjamin Dauvergne
704432d412
tests: add fixture to test hooks ( #20100 )
2017-11-16 16:26:23 +01:00