diff --git a/routers/auto_signin_filter.go b/routers/auto_signin_filter.go index 7eec9f14..1ca3cab6 100644 --- a/routers/auto_signin_filter.go +++ b/routers/auto_signin_filter.go @@ -102,7 +102,12 @@ func AutoSigninFilter(ctx *context.Context) { userId = ctx.Input.Query("username") password := ctx.Input.Query("password") if userId != "" && password != "" && ctx.Input.Query("grant_type") == "" { - owner, name := util.GetOwnerAndNameFromId(userId) + owner, name, err := util.GetOwnerAndNameFromIdWithError(userId) + if err != nil { + responseError(ctx, err.Error()) + return + } + _, err = object.CheckUserPassword(owner, name, password, "en") if err != nil { responseError(ctx, err.Error())