I created an admin user with a password, that contains a special character. Installation of Gitea was successful, but I can't login. I can't get new password, because it says:
Sorry, Register Mail Confirmation has been disabled.
I tried command gitea admin change-password
, but command is not recognized.
For Current GITEA sometime it will not work by
cd /path/to/gitea
./gitea admin change-password --username myusername --password asecurenewpassword
You need to specify the configuration also e.g. :
cd /path/to/gitea
./gitea admin change-password --username myusername --password asecurenewpassword -c "/etc/gitea/app.ini"
For NixOS users, it's a bit more complicated:
su
su gitea
nix-shell -p gitea
gitea admin user change-password -c /var/lib/gitea/custom/conf/app.ini -u user-name -p new-pwd
(tested on Gitea version 1.15.6)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With