Skip to content

Commit

Permalink
Fail open on login (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfcheung committed Jun 25, 2024
1 parent f853618 commit 8b81e58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ func (p *Profile) CreateProfile() error {
// Remove all keys under existing profile first
v := p.deleteProfile(viper.GetViper())

if err := p.deleteLivemodeValue(LiveModeAPIKeyName); err != nil {
return err
}
// Fail open to avoid blocking login
p.deleteLivemodeValue(LiveModeAPIKeyName)

writeErr := p.writeProfile(v)
if writeErr != nil {
Expand Down

0 comments on commit 8b81e58

Please sign in to comment.