🗃️ Update models
This commit is contained in:
parent
3b0cbbb6c9
commit
3393f751a0
@ -9,11 +9,12 @@ service Auth {
|
||||
}
|
||||
|
||||
message Userinfo {
|
||||
string name = 1;
|
||||
string nick = 2;
|
||||
string email = 3;
|
||||
string avatar = 4;
|
||||
optional string description = 5;
|
||||
uint64 id = 1;
|
||||
string name = 2;
|
||||
string nick = 3;
|
||||
string email = 4;
|
||||
string avatar = 5;
|
||||
optional string description = 6;
|
||||
}
|
||||
|
||||
message AuthRequest {
|
||||
|
@ -3,7 +3,6 @@ package server
|
||||
import (
|
||||
"code.smartsheep.studio/hydrogen/identity/pkg/security"
|
||||
"code.smartsheep.studio/hydrogen/identity/pkg/services"
|
||||
"fmt"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"strings"
|
||||
)
|
||||
@ -21,7 +20,6 @@ func authMiddleware(c *fiber.Ctx) error {
|
||||
c.Locals("token", token)
|
||||
|
||||
if err := authFunc(c); err != nil {
|
||||
fmt.Println("Watch out!", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user