1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 14:31:44 +01:00

feat: list of releases can now be seen at the top (#2480)

This commit is contained in:
Amir Raminfar
2023-11-10 11:45:47 -08:00
committed by GitHub
parent 7dae54df26
commit 9fa4911aec
35 changed files with 458 additions and 197 deletions

View File

@@ -10,13 +10,13 @@ import (
)
type simpleAuthContext struct {
UserDatabase *UserDatabase
UserDatabase UserDatabase
tokenAuth *jwtauth.JWTAuth
}
var ErrInvalidCredentials = errors.New("invalid credentials")
func NewSimpleAuth(userDatabase *UserDatabase) *simpleAuthContext {
func NewSimpleAuth(userDatabase UserDatabase) *simpleAuthContext {
h := sha256.New()
for _, user := range userDatabase.Users {
h.Write([]byte(user.Password))