diff options
author | amine <hilalyamine@gmail.com> | 2019-12-09 17:16:44 +0100 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-12-09 17:16:44 +0100 |
commit | 58c0e5aac97eabc02fa890123f3845ae6fe632a8 (patch) | |
tree | ccc994b915b0c356f7d8c7e2023649e77a934456 /bridge | |
parent | 4c6d33e48eacaeae986d34141ad32e8fcbf958d6 (diff) | |
download | git-bug-58c0e5aac97eabc02fa890123f3845ae6fe632a8.tar.gz |
auth: Correctly cast configs[configKeyKind]
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/core/auth/credential.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/core/auth/credential.go b/bridge/core/auth/credential.go index 9504fd70..a462a116 100644 --- a/bridge/core/auth/credential.go +++ b/bridge/core/auth/credential.go @@ -102,7 +102,7 @@ func loadFromConfig(rawConfigs map[string]string, id entity.Id) (Credential, err var cred Credential - switch configs[configKeyKind] { + switch CredentialKind(configs[configKeyKind]) { case KindToken: cred = NewTokenFromConfig(configs) case KindLoginPassword: |