Skip to content

Conversation

@SagePtr
Copy link
Contributor

@SagePtr SagePtr commented May 2, 2019

Removed scratch token regeneration in NewTwoFactor, as it's generated anyway before calling this function.

This fixes bug (#6832) when scratch token was generated twice during 2FA setup and first-generated scratch token was not working (due to instantly being overwritten).

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

Codecov Report

Merging #6833 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6833      +/-   ##
==========================================
+ Coverage   41.22%   41.22%   +<.01%     
==========================================
  Files         421      421              
  Lines       58124    58120       -4     
==========================================
- Hits        23960    23959       -1     
+ Misses      30992    30988       -4     
- Partials     3172     3173       +1
Impacted Files Coverage Δ
models/twofactor.go 5.31% <0%> (+0.21%) ⬆️
modules/log/event.go 64.46% <0%> (-1.53%) ⬇️
models/unit.go 67.56% <0%> (+5.4%) ⬆️

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 ade88a8...eb848e9. 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 2, 2019
@lafriks lafriks merged commit 59f879b into go-gitea:master May 2, 2019
@SagePtr SagePtr deleted the issue6832 branch May 2, 2019 20:06
@lafriks
Copy link
Member

lafriks commented May 2, 2019

Please send backport to release/v1.8 branch

@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label May 2, 2019
SagePtr added a commit to SagePtr/gitea that referenced this pull request May 2, 2019
@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.

5 participants