fix get value db

This commit is contained in:
Djeeberjr 2022-02-07 15:59:52 +01:00
parent 131f19deed
commit 125ce9c955

View File

@ -222,7 +222,7 @@ func deleteDirectory(ctx context.Context, id types.ID) error {
//login Checks for valid username password combination. Returns singed jwt string //login Checks for valid username password combination. Returns singed jwt string
func login(ctx context.Context, username, password string) (types.LoginResult, error) { func login(ctx context.Context, username, password string) (types.LoginResult, error) {
dbStore := ctx.Value("dbStore").(*db.DB) dbStore := ctx.Value("dbStore").(db.DB)
succes, err := dbStore.CheckLogin(ctx, username, password) succes, err := dbStore.CheckLogin(ctx, username, password)