This commit is contained in:
@@ -16,7 +16,7 @@ func (f *Middlewares) AuthFrontend(ctx fiber.Ctx) error {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
if f.app.IsDevMode() && true {
|
||||
if f.app.IsDevMode() && false {
|
||||
user, err := services.Users.FindByID(ctx.Context(), 1001)
|
||||
if err != nil {
|
||||
return ctx.Send([]byte("User not found"))
|
||||
@@ -33,7 +33,7 @@ func (f *Middlewares) AuthFrontend(ctx fiber.Ctx) error {
|
||||
query := u.Query()
|
||||
query.Set("redirect", fullUrl)
|
||||
u.RawQuery = query.Encode()
|
||||
u.Path = "/v1/auth/wechat" // TODO: use phone validation
|
||||
u.Path = "/v1/auth/phone"
|
||||
fullUrl = u.String()
|
||||
|
||||
// check cookie exists
|
||||
Reference in New Issue
Block a user