Skip to content

Commit

Permalink
默认抓取头像
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 26, 2024
1 parent 6cf4222 commit 0e687fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NewLife.Cube/Entity/OAuth配置.Biz.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected override void InitData()
Debug = true,
Visible = true,
AutoRegister = true,
FetchAvatar = true,
};
entity.Insert();

Expand All @@ -121,6 +122,7 @@ protected override void InitData()

Visible = false,
AutoRegister = true,
FetchAvatar = true,
};
cfg.Insert();

Expand Down Expand Up @@ -209,6 +211,7 @@ public static OAuthConfig Add(String name, String nickName, String logo, String
Logo = logo,
Visible = true,
AutoRegister = true,
FetchAvatar = true,
Remark = remark,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static OAuthConfigController()
{
LogOnChange = true;

ListFields.RemoveField("Secret", "Logo", "AuthUrl", "AccessUrl", "UserUrl", "Remark");
ListFields.RemoveField("Secret", "Logo", "AuthUrl", "AccessUrl", "UserUrl", "SecurityKey", "FieldMap", "Remark");
}

/// <summary>首页</summary>
Expand Down

0 comments on commit 0e687fd

Please sign in to comment.