add must-change-password flag to change-password command #675
Reference in New Issue
Block a user
No description provided.
Delete Branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the change
When using a non-default admin user, the change-password command would require the admin to update the password each time gitea is restared/upgraded.
I'm not sure if there's a reason to have this configureable so I just added the option for now to match the command above.
Benefits
Possible drawbacks
Applicable issues
Additional information
⚠ BREAKING
Checklist
values.yaml
and added to theREADME.md
using readme-generator-for-helmREADME.md
Thanks! As @justusbunsi already pointed out, we should make that configurable.
I haven't had a chance yet to test this out with a non-default admin user, just wondering why it seems to only apply there and not to
gitea_admin
(as I couldn't reproduce it with it a few days ago)....I will close my PR that does the exact same thing as you opened this after I'd gotten mad and checked for it, lol.
Do you mean to be able to configure
true|false
for that option? If setting it totrue
wouldn't that mean having to change the admin password every time gitea is restarted? (the current situation with a custom username)I was thinking about this and I think three possible modes sounds useful.
I have thoughts on how best to implement this. Any thoughts on this approach?
@william-elastisys Are you fine focusing on #677 to solve this particular issue? I don't think we would issue a hot fix here but rather focus on a robust solution as started in #677. You are of course welcome to comment/contribute there if you want!
Yes, sounds good to make it configurable, would be nice to create a new release when that PR is done as we are blocked from upgrading to gitea 1.22 currently 👍
Pull request closed