0
zhangxd1222 created
2 Answer(s)
-
0
Firstly you have to create your profile menu contributor like below:
public class CustomProfileMenuContributor : IProfileManagementPageContributor { public Task ConfigureAsync(ProfileManagementPageCreationContext context) { context.Groups.ForEach(Console.WriteLine); context.Groups.Remove(context.Groups.First(x => x.Id == "Volo-Abp-Account-TwoFactor")); return Task.CompletedTask; } }
Then go to WebModule class and add your contributor via configuring ProfileManagementPageOptions
Configure<ProfileManagementPageOptions>(p => { p.Contributors.Add(new CustomProfileMenuContributor()); });
You'll see Two Factor is removed:
-
0
This question has been automatically marked as stale because it has not had recent activity.