Nicolas Roche
03f2b80a98
manager: allow ou slug edition ( #46655 )
2020-10-09 11:19:15 +02:00
Benjamin Dauvergne
1b9b01e3ec
manager: simplify user's authorizations view ( #47203 )
2020-10-01 10:32:51 +02:00
Nicolas Roche
14f37aeedd
manager: add a page to manage users authorized services ( #46182 )
2020-09-29 11:55:32 +02:00
Valentin Deniaud
756a4cad3d
manager: fix import roles crash when single ou ( #46448 )
2020-09-08 14:11:48 +02:00
Valentin Deniaud
4f3c6a47d6
manager: add ou and role imports ( #45082 )
2020-08-31 10:05:59 +02:00
Frédéric Péters
bd9d06edc2
manager: expose all OU options in /manage/ ( #45542 )
2020-08-01 17:38:47 +02:00
Frédéric Péters
0e355150cc
manager: use gadjo to render form ( #39580 )
2020-07-02 23:28:16 +02:00
Valentin Deniaud
8db35c9233
csv_import: ignore BOM ( #43627 )
2020-06-30 15:23:55 +02:00
Benjamin Dauvergne
bee7491f48
manager: set created user's OU in clean() ( #43074 )
...
Any modification to the model should be done trough clean() method, as
it enables later checks like uniqueness validation. No instance
initialization should ever be done in save() methods unless it's
garanteed that it cannot mess with validation.
2020-05-20 16:50:27 +02:00
Benjamin Dauvergne
d37e8f0d5d
misc: let User model validate identifiers and uniqueness ( #43074 )
2020-05-20 16:50:27 +02:00
Valentin Deniaud
053200515b
manager: add missing field validation ( #37159 )
2020-05-04 16:48:10 +02:00
Valentin Deniaud
bc84376e19
manager: remove unused RoleForm ( #37159 )
2020-05-04 16:48:10 +02:00
Paul Marillonnet
d178b22d51
dj2.2: user.is_anonymous is not a callable anymore ( #41238 )
2020-04-27 14:34:55 +02:00
Valentin Deniaud
5a8fbd9ef1
commands: per-OU unused user accounts cleaning policy ( #26909 )
2020-04-02 11:02:16 +02:00
Valentin Deniaud
56f4868afb
misc: use email domain validation ( #40200 )
2020-03-05 16:47:10 +01:00
Valentin Deniaud
85fdc938c9
csv_import: explicit utf-8 encoding choice ( #37901 )
2020-02-17 15:35:05 +01:00
Valentin Deniaud
fba5f1217c
manager: clearer error message on invalid csv import file ( #37374 )
2019-11-21 10:20:34 +01:00
Frédéric Péters
588dcfb95c
misc: consider all roles prefixed with _ as internals ( #36504 )
2019-10-02 10:11:54 +02:00
Benjamin Dauvergne
df6cebea45
manager: always check role's name uniqueness ( #33944 )
2019-07-04 13:09:43 +02:00
Benjamin Dauvergne
dc3582ed45
manager: add user import views ( fixes #32833 )
2019-06-22 13:06:01 +02:00
Benjamin Dauvergne
9fbbf0519a
spring cleaning ( #32934 )
...
* reorganize views and forms
* add copyright headers to all .py files
* fix all style errors reported by flake8
2019-05-14 16:19:25 +02:00
Paul Marillonnet
cb10c41b0f
python3: remove deprecated unicode builtin ( #31151 )
2019-04-01 17:05:10 +02:00
Paul Marillonnet
b836b818e7
python3: remove dict.iteritems in py files and django templates ( #31149 )
2019-03-20 12:29:30 +01:00
Emmanuel Cazenave
9768e8fe3e
OU attribute to hide username on user add ( #25669 )
2019-03-08 10:25:19 +01:00
Benjamin Dauvergne
205b994d91
pep8ness
2018-12-18 17:27:56 +01:00
Benjamin Dauvergne
506de394f9
manager: dont require username or email for passwordless accounts ( fixes #28916 )
2018-12-18 17:27:56 +01:00
Emmanuel Cazenave
0876d25dbd
api: free text search on users ( #15736 )
2018-11-27 10:56:05 +01:00
Frédéric Péters
fc25bf6024
manager: force sending email for new users with a generated password ( #25664 )
2018-08-30 10:38:33 +02:00
Benjamin Dauvergne
6c1def8a88
use new password widget in manager ( #25045 )
2018-08-03 14:30:48 +02:00
Emmanuel Cazenave
135b81c6fc
use explicit in lookup ( #25557 )
2018-08-02 17:56:51 +02:00
Benjamin Dauvergne
08253fb2d3
manager: send new email in the email change verification mail ( fixes #20564 )
...
Use of a ModelForm keeping the original email field for the
UserChangeEmailForm makes keeping the original email value after clean()
is called impossible, as clean() is also responsible of transfering
value from the form into the model instance.
We keep using a ModelForm but we use a new field not present in the
model to get the new email and we override the save() method so that the
behaviour of sending the validation mail is kept inside the form and not
in the view. Only the call to the manager's hook
manager-change-email-request is kept in the view.
2018-02-07 21:16:22 +01:00
Benjamin Dauvergne
b1d41b96d7
manager: remove All ou choice from ou selector on user's roles view ( fixes #20519 )
...
User's roles view is special, the choice all ou modify the UI so that it shows
all roles of the user and only them, whatever their OU but it do not show
all roles from all OUs like on the role listing view. To prevent
misunderstanding from the user on the effect of this choice, we change it
for the empty string as before.
2017-12-13 17:23:18 +01:00
Benjamin Dauvergne
57588c4e5d
manager: show all role's OUs visible to user ( fixes #20511 )
2017-12-11 12:59:10 +01:00
Benjamin Dauvergne
ed0402e18a
manager: hide ou field when there is only one ou ( fixes #20248 )
2017-12-08 15:12:25 +01:00
Benjamin Dauvergne
c9206ea1df
manager: add field validate_emails in OUEditForm ( #19716 )
2017-12-08 15:12:25 +01:00
Benjamin Dauvergne
15878fbfaa
manager: add a change email action on users ( fixes #19716 )
...
It's only visible for OU with the validate_emails flag.
2017-12-08 13:25:57 +01:00
Benjamin Dauvergne
bbb4b9a65a
utils: factorize sending of email change verification email ( #19716 )
2017-12-08 13:25:57 +01:00
Benjamin Dauvergne
25e8ca545a
a2_rbac: add a validate_emails flag to OU model ( #19716 )
2017-12-08 13:25:57 +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
6b762fc275
manager: fix removal of user's OU field from edit form ( fixes #20126 )
2017-11-20 12:32:38 +01:00
Benjamin Dauvergne
0317112625
manager: fix ou search for administrators with visibility only on OUs ( fixes #19992 )
2017-11-10 17:23:24 +01:00
Benjamin Dauvergne
d1f4035c6b
manager: catch TypeError when checking ou field in OUSearchForm ( fixes #19992 )
2017-11-09 12:21:38 +01:00
Benjamin Dauvergne
eef12bc564
manager: add all and none OU filters to the user search form ( fixes #19228 )
...
Also show the search form on role members page (fixes #19645 , #19627 ).
2017-11-08 10:51:37 +01:00
Benjamin Dauvergne
1614540ad1
manager: queryset in modelchoicefield should be filtered on the search permission, not the view permission ( fixes #19274 )
2017-10-09 11:53:11 +02:00
Benjamin Dauvergne
7ae90b16d9
manager: honor unique email constraint on back-office creation ( fixes #18543 )
2017-09-21 17:35:12 +02:00
Benjamin Dauvergne
c91c5d6a4f
manager: replace explicit query for OU count by get_ou_count() in HideOUFieldMixin ( #18901 )
2017-09-21 17:35:12 +02:00
Benjamin Dauvergne
04191df4b7
manager: add an option to send a password reset email on user's creation ( #18901 )
2017-09-21 17:35:12 +02:00
Benjamin Dauvergne
9c43331a47
manager: only alert on missing username or email if username or email are available fields ( #18901 )
2017-09-21 17:35:12 +02:00
Benjamin Dauvergne
5c7e7bfa42
manager: add a USER_SEARCH_MINIMUM_CHARS setting ( #18901 )
2017-09-21 17:35:11 +02:00
Benjamin Dauvergne
b3457af606
manager: force created user's ou from user's search form ( #18901 )
...
Stylesheet is adapted since the OU selector is removed by this commit.
2017-09-21 17:35:11 +02:00