re-construct oauth

This commit is contained in:
Tao Chen committed 2024-11-02 04:01:28 +08:00
1 parent c5e3482538
commit 485ae54e9e
14 files changed
+491 -491

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ type UserPayload struct {
func (up *UserPayload) FromUser(user *model.User) *UserPayload {
up.Name = user.Username
up.Email = user.Email
up.IsAdmin = user.IsAdmin
up.Status = int(user.Status)
up.Info = map[string]interface{}{}