A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat(plugin): Return whether to set password status at login
LinkinStars91f5f3290ce3
diff --git a/internal/schema/user_schema.go b/internal/schema/user_schema.goindex 16238091..7111b043 100644--- a/internal/schema/user_schema.go+++ b/internal/schema/user_schema.go@@ -70,6 +70,8 @@ type GetUserResp struct {IsAdmin bool `json:"is_admin"`// user statusStatus string `json:"status"`+ // user have password+ HavePassword bool `json:"have_password"`}func (r *GetUserResp) GetFromUserEntity(userInfo *entity.User) {@@ -81,6 +83,7 @@ func (r *GetUserResp) GetFromUserEntity(userInfo *entity.User) {if ok {r.Status = statusShow}+ r.HavePassword = len(userInfo.Pass) > 0}type GetUserToSetShowResp struct {