migrate old database format correctly, fix typo, update readme

This commit is contained in:
Christoph Haas
2021-02-26 23:13:11 +01:00
parent 9bd80dbd33
commit 2b77148b81
3 changed files with 12 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ func (provider Provider) Login(ctx *authentication.AuthContext) (string, error)
return "", errors.New("empty username or password")
}
// Authenticate agains the users database
// Authenticate against the users database
user := users.User{}
provider.db.Where("email = ?", username).First(&user)