Skip to content

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented May 27, 2019

Fixes #1409
Fixes #6954

Detecting if the administrator username is invalid before creating the initial config and global init means that the user can change this - previously this would cause an unending loop.

It also checks the email is not empty.

@zeripath zeripath added this to the 1.9.0 milestone May 27, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 27, 2019
@codecov-io
Copy link

codecov-io commented May 27, 2019

Codecov Report

Merging #7060 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7060      +/-   ##
==========================================
- Coverage   41.45%   41.43%   -0.02%     
==========================================
  Files         442      442              
  Lines       59623    59643      +20     
==========================================
  Hits        24716    24716              
- Misses      31676    31696      +20     
  Partials     3231     3231
Impacted Files Coverage Δ
routers/install.go 0% <0%> (ø) ⬆️

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 69d81b6...ce0018b. Read the comment docs.

@GiteaBot GiteaBot 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 May 28, 2019
@zeripath zeripath merged commit bd9ed96 into go-gitea:master May 28, 2019
@zeripath zeripath deleted the install-page branch May 28, 2019 07:14
zeripath added a commit to zeripath/gitea that referenced this pull request May 28, 2019
…#7060)

* Install page - detect invalid admin username before installing

* Also fix go-gitea#6954
zeripath added a commit that referenced this pull request May 28, 2019
…7063)

* Install page - detect invalid admin username before installing

* Also fix #6954
@lafriks lafriks added the backport/done All backports for this PR have been created label May 28, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
…#7060)

* Install page - detect invalid admin username before installing

* Also fix go-gitea#6954
@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
backport/done All backports for this PR have been created 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.

Gitea Install page -> Optional Admin sesttings -> email addr (blank): wrong error message Install fails if admin username is invalid
6 participants