fix get value db
This commit is contained in:
parent
131f19deed
commit
125ce9c955
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user