diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-26 07:38:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 07:38:13 +0100 |
commit | 0c791483286ce2ed845bbc77b2a2899149ad83c5 (patch) | |
tree | 6129d0a6e2efbfa81b26534ee5aeb65ba1261bfe /commands | |
parent | 68acfa519ab6656648d1e976db2a4190bbeb5f44 (diff) | |
parent | 893de4f5c0e852fac9a73e0c0243bc038af75f17 (diff) | |
download | git-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 'commands')
-rw-r--r-- | commands/user.go | 3 | ||||
-rw-r--r-- | commands/user_create.go | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/commands/user.go b/commands/user.go index 5cf40cf0..2888e131 100644 --- a/commands/user.go +++ b/commands/user.go @@ -41,6 +41,8 @@ func runUser(cmd *cobra.Command, args []string) error { switch userFieldsQuery { case "email": fmt.Printf("%s\n", id.Email()) + case "login": + fmt.Printf("%s\n", id.Login()) case "humanId": fmt.Printf("%s\n", id.Id().Human()) case "id": @@ -67,6 +69,7 @@ func runUser(cmd *cobra.Command, args []string) error { fmt.Printf("Id: %s\n", id.Id()) fmt.Printf("Name: %s\n", id.Name()) fmt.Printf("Email: %s\n", id.Email()) + fmt.Printf("Login: %s\n", id.Login()) fmt.Printf("Last modification: %s (lamport %d)\n", id.LastModification().Time().Format("Mon Jan 2 15:04:05 2006 +0200"), id.LastModificationLamport()) diff --git a/commands/user_create.go b/commands/user_create.go index 95e09050..df4aa8e9 100644 --- a/commands/user_create.go +++ b/commands/user_create.go @@ -43,7 +43,7 @@ func runUserCreate(cmd *cobra.Command, args []string) error { return err } - id, err := backend.NewIdentityRaw(name, email, avatarURL, nil) + id, err := backend.NewIdentityRaw(name, email, "", avatarURL, nil) if err != nil { return err } |