✅ Add share login handling tests

This commit is contained in:
2020-10-13 19:59:45 +02:00
parent 66c525aa7b
commit 3d4f6f681c
2 changed files with 95 additions and 0 deletions
+1
View File
@@ -166,6 +166,7 @@ func (u User) merge(updates User) (User, error) {
}
var ErrShareNotFound = errors.New("share not found")
var ErrLoginDuplicate = errors.New("login already exists")
func (store *DBStore) AddUser(user User) (err error) {
if strings.Contains(user.Username, ":") {