|
|
@ -97,7 +97,7 @@ func (i *MultiUserInbound) AddUser(ctx context.Context, u *protocol.MemoryUser)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
i.users = append(i.users, &User{
|
|
|
|
i.users = append(i.users, &User{
|
|
|
|
Key: account.Key,
|
|
|
|
Key: account.Key,
|
|
|
|
Email: strings.ToLower(account.Email),
|
|
|
|
Email: account.Email,
|
|
|
|
Level: account.Level,
|
|
|
|
Level: account.Level,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -120,7 +120,6 @@ func (i *MultiUserInbound) RemoveUser(ctx context.Context, email string) error {
|
|
|
|
i.Lock()
|
|
|
|
i.Lock()
|
|
|
|
defer i.Unlock()
|
|
|
|
defer i.Unlock()
|
|
|
|
|
|
|
|
|
|
|
|
email = strings.ToLower(email)
|
|
|
|
|
|
|
|
idx := -1
|
|
|
|
idx := -1
|
|
|
|
for ii, u := range i.users {
|
|
|
|
for ii, u := range i.users {
|
|
|
|
if strings.EqualFold(u.Email, email) {
|
|
|
|
if strings.EqualFold(u.Email, email) {
|
|
|
|