Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't force a password change for the admin user when creating an account via cli #5391

Merged
merged 3 commits into from
Nov 25, 2018

Conversation

adelowo
Copy link
Member

@adelowo adelowo commented Nov 23, 2018

This resolves #5376 (comment) .

If the account being created is the initial admin account, skip requesting a password change.

@adelowo adelowo changed the title Don't force a password change for the admin user Don't force a password change for the admin user when creating an account via cli Nov 23, 2018
@bkcsoft bkcsoft added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 23, 2018
@codecov-io
Copy link

codecov-io commented Nov 23, 2018

Codecov Report

Merging #5391 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5391      +/-   ##
==========================================
- Coverage   37.47%   37.45%   -0.02%     
==========================================
  Files         312      312              
  Lines       46509    46509              
==========================================
- Hits        17430    17421       -9     
- Misses      26591    26597       +6     
- Partials     2488     2491       +3
Impacted Files Coverage Δ
models/repo_indexer.go 44.49% <0%> (-3.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3379141...bd3efbd. Read the comment docs.

@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 24, 2018
cmd/admin.go Show resolved Hide resolved
… (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update
@lafriks lafriks merged commit fd37fb0 into go-gitea:master Nov 25, 2018
@lafriks lafriks added this to the 1.7.0 milestone Nov 25, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not create first user (admin) with API
6 participants