Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
save credentials even if they are invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
SoMuchForSubtlety committed Oct 25, 2021
1 parent 6aa930f commit fc9e3e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/ui/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,10 @@ func (s *UIState) closeForm(username, pw string) {
err := s.login(username, pw)
if err != nil {
s.logger.Error(err)
} else {
err := keyring.Set(serviceName, username, pw)
if err != nil {
s.logger.Error(err)
}
}
err = keyring.Set(serviceName, username, pw)
if err != nil {
s.logger.Error(err)
}
if username != s.cfg.F1TVEmail {
s.cfg.F1TVEmail = username
Expand Down

0 comments on commit fc9e3e9

Please sign in to comment.