aboutsummaryrefslogtreecommitdiffstats
path: root/identity/common.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-26 07:38:13 +0100
committerGitHub <noreply@github.com>2020-02-26 07:38:13 +0100
commit0c791483286ce2ed845bbc77b2a2899149ad83c5 (patch)
tree6129d0a6e2efbfa81b26534ee5aeb65ba1261bfe /identity/common.go
parent68acfa519ab6656648d1e976db2a4190bbeb5f44 (diff)
parent893de4f5c0e852fac9a73e0c0243bc038af75f17 (diff)
downloadgit-bug-0c791483286ce2ed845bbc77b2a2899149ad83c5.tar.gz
Merge pull request #343 from MichaelMure/login-is-back
identity: bring back the login to hold that info from bridges
Diffstat (limited to 'identity/common.go')
-rw-r--r--identity/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/common.go b/identity/common.go
index 0fd2b274..007e10d6 100644
--- a/identity/common.go
+++ b/identity/common.go
@@ -37,7 +37,7 @@ func UnmarshalJSON(raw json.RawMessage) (Interface, error) {
b := &Bare{}
err = json.Unmarshal(raw, b)
- if err == nil && b.name != "" {
+ if err == nil && (b.name != "" || b.login != "") {
return b, nil
}