]> source.dussan.org Git - gitea.git/commit
Add command to bulk set must-change-password (#22823)
authorzeripath <art27@cantab.net>
Tue, 14 Feb 2023 22:12:19 +0000 (22:12 +0000)
committerGitHub <noreply@github.com>
Tue, 14 Feb 2023 22:12:19 +0000 (16:12 -0600)
commitaa1d95300ab1b34a3b4c9f5902ea821f2aa99f6e
treeac14d69e9e908ceba7826058115550315ee10c87
parent618c9118c1652fdeea2a2ae0d1459bb1fd3d5169
Add command to bulk set must-change-password (#22823)

As part of administration sometimes it is appropriate to forcibly tell
users to update their passwords.

This PR creates a new command `gitea admin user must-change-password`
which will set the `MustChangePassword` flag on the provided users.

Signed-off-by: Andrew Thornton <art27@cantab.net>
cmd/admin.go
cmd/admin_user.go [new file with mode: 0644]
cmd/admin_user_change_password.go [new file with mode: 0644]
cmd/admin_user_create.go [new file with mode: 0644]
cmd/admin_user_delete.go [new file with mode: 0644]
cmd/admin_user_generate_access_token.go [new file with mode: 0644]
cmd/admin_user_list.go [new file with mode: 0644]
cmd/admin_user_must_change_password.go [new file with mode: 0644]
docs/content/doc/usage/command-line.en-us.md
models/user/must_change_password.go [new file with mode: 0644]