hi
This method of Account module will handle the external login.
https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs#L176-L266
It will get the email of the external user and then go to register or create a new user. There is a similar code in account pro.
hi
I change your code to add a tenant then the seeder is working.
https://support.abp.io/QA/Questions/2731#answer-803b7a5c-d367-44c0-8537-3a02acf0f7a7
HI
This problem has been fixed.
PreConfigure<IdentityBuilder>(builder =>
{
builder.Services.RemoveAll(x => x.ImplementationType == typeof(MaxUserCountValidator));
builder.AddUserValidator<MyMaxUserCountValidator>();
});
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Volo.Abp.Features;
using Volo.Abp.Identity.Features;
namespace Volo.Abp.Identity;
public class MyMaxUserCountValidator : IUserValidator<IdentityUser>
{
protected IFeatureChecker FeatureChecker { get; }
protected IIdentityUserRepository UserRepository { get; }
public MyMaxUserCountValidator (IFeatureChecker featureChecker, IIdentityUserRepository userRepository)
{
FeatureChecker = featureChecker;
UserRepository = userRepository;
}
public async Task<IdentityResult> ValidateAsync(UserManager<IdentityUser> manager, IdentityUser user)
{
await CheckMaxUserCountAsync(user);
return IdentityResult.Success;
}
protected virtual async Task CheckMaxUserCountAsync(IdentityUser user)
{
var maxUserCount = await FeatureChecker.GetAsync<int>(IdentityProFeature.MaxUserCount);
if (maxUserCount <= 0)
{
return;
}
var existUser = await UserRepository.FindAsync(user.Id);
if (existUser == null)
{
var currentUserCount = await UserRepository.GetCountAsync();
if (currentUserCount >= maxUserCount)
{
throw new BusinessException(IdentityProErrorCodes.MaximumUserCount)
.WithData("MaxUserCount", maxUserCount);
}
}
}
}
I think the browser version is too low.
https://jquery.com/browser-support/ https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/
Please check the console of IE
https://www.ibm.com/support/pages/how-use-ie-11-f12-developer-tools-capture-browser-console-log-and-network-log-omnibus-webgui
hi
This is right JSON of mongodb.
[
{
"_id": {"$binary": {"base64": "SFPE7JswPI6PCzoCvemr2w==", "subType": "03"}},
"ConcurrencyStamp": "a412abf04f4049cc8125bec75ced62b2",
"DefaultDocumentName": "Index",
"DocumentStoreType": "GitHub",
"Format": "md",
"GitHubAccessToken": "ghp_xxx",
"GitHubRootUrl": "https://github.com/simixsistemas/SuperMidia.Cloud.Docs/tree/main/",
"GitHubUserAgent": null,
"LatestVersionBranchName": null,
"MainWebsiteUrl": null,
"MinimumVersion": null,
"Name": "Simix SuperMidia (GitHub)",
"NavigationDocumentName": "docs-nav.json",
"ParametersDocumentName": "docs-params.json",
"ShortName": "cloud",
"VersionBranchPrefix": null
}
]
Within Internet Explorer, I still cannot login and cannot do anything.
Please check the console of IE. what's the version?
hi
We will check this.