实现基础的实名认证功能(商业版本专有,开源版本只显示认证状态)

This commit is contained in:
GoEdgeLab
2022-07-24 09:57:26 +08:00
parent 8e5019d8d2
commit 687e667070
8 changed files with 163 additions and 5 deletions

View File

@@ -44,6 +44,13 @@ func (this *UpdateAction) RunGet(params struct {
}
countAccessKeys := countAccessKeyResp.Count
// 是否有实名认证
hasNewIndividualIdentity, hasNewEnterpriseIdentity, identityTag, err := userutils.CheckUserIdentity(this.RPC(), this.AdminContext(), params.UserId)
if err != nil {
this.ErrorPage(err)
return
}
this.Data["user"] = maps.Map{
"id": user.Id,
"username": user.Username,
@@ -54,6 +61,11 @@ func (this *UpdateAction) RunGet(params struct {
"mobile": user.Mobile,
"isOn": user.IsOn,
"countAccessKeys": countAccessKeys,
// 实名认证
"hasNewIndividualIdentity": hasNewIndividualIdentity,
"hasNewEnterpriseIdentity": hasNewEnterpriseIdentity,
"identityTag": identityTag,
}
this.Data["clusterId"] = 0