From 0dde8e270cd7d3e9ed4296ad79a7ee130842bd44 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 21 Jul 2019 16:04:02 +0500 Subject: [PATCH] Fix user id --- internal/backends/memory/user.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/backends/memory/user.go b/internal/backends/memory/user.go index 633ead6..3a87bd9 100644 --- a/internal/backends/memory/user.go +++ b/internal/backends/memory/user.go @@ -1,7 +1,6 @@ package memory type User struct { - id string name string password string Tokens map[string]Token @@ -10,7 +9,7 @@ type User struct { } func (user *User) ID() string { - return "@" + user.id + ":" + user.backend.hostname + return "@" + user.name + ":" + user.backend.hostname } func (user *User) Name() string {