re-construct oauth
This commit is contained in:
1 parent
c5e3482538
commit
485ae54e9e
14 files changed
+491
-491
No files matched your search
@@ -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{}{}
|
||||
|
||||
Reference in new issue
Block a user