diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-11 16:07:15 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | dc6c10155c33033b386665e7882b91be9837f55a (patch) | |
| tree | 64ca15fdb2aec5a17c93bae99508f70e61b951a6 /internal/client/ui/auth/auth.go | |
| parent | 86c3f3f730dd8867f4d5df6fef428df36ff2d193 (diff) | |
Added anonymous_device_analytics option on the client and added cache
dir to store things like device ID and TOS hashes (only storing device
ID currently)
Diffstat (limited to 'internal/client/ui/auth/auth.go')
| -rw-r--r-- | internal/client/ui/auth/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/client/ui/auth/auth.go b/internal/client/ui/auth/auth.go index 8e6dffb..47a3f89 100644 --- a/internal/client/ui/auth/auth.go +++ b/internal/client/ui/auth/auth.go @@ -378,7 +378,7 @@ func (m *Model) SetSignup(signup bool) tea.Cmd { m.focusIndex = -1 m.CycleForward() - privateKey := config.Read().PrivateKeyPath + privateKey := config.ReadConfig().PrivateKeyPath if !m.signup && privateKey != "" { m.fields[privateKeyField].Input.SetValue(privateKey) } @@ -544,7 +544,7 @@ func (m *Model) signin() tea.Cmd { } if m.remember { - _ = config.Use(func(config *config.Config) { + _ = config.UseConfig(func(config *config.Config) { config.PrivateKeyPath = privateKeyFilepath }) } |
