Skip to content

Commit

Permalink
simply change password if performing legacy recovery while logged in (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pzduniak authored and cjb committed Aug 9, 2019
1 parent 68d279c commit f8de90a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/engine/passphrase_recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func (e *PassphraseRecover) processUsername(mctx libkb.MetaContext) error {

// TODO CORE-10851: Remove
func (e *PassphraseRecover) legacyRecovery(mctx libkb.MetaContext) (err error) {
if loggedIn, _ := isLoggedIn(mctx); loggedIn {
return e.changePassword(mctx)
}

return e.loginWithPaperKey(mctx)
}

Expand Down

0 comments on commit f8de90a

Please sign in to comment.