]> source.dussan.org Git - gitea.git/commit
Add command to bulk set must-change-password (#22823) (#22928)
authorzeripath <art27@cantab.net>
Thu, 16 Feb 2023 12:33:24 +0000 (12:33 +0000)
committerGitHub <noreply@github.com>
Thu, 16 Feb 2023 12:33:24 +0000 (20:33 +0800)
commit2e1afd54b2b1040ee259ee19e6614b76da4b25e0
treea338a135ebf3b0798172d865903be15cb41eb3f0
parent9e68261ca7a33c8007a456e6b757643a5ab40984
Add command to bulk set must-change-password (#22823) (#22928)

Backport #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>
Co-authored-by: Jason Song <i@wolfogre.com>
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]