Updated SignalR and Angular.UI.Grid but getting
TypeError: Cannot read property 'length' of undefined
All Grids on the SPA do not work(no content) and saving settings does not work, "internal server error".
Doing all this with MPA is no problem. What am I missing?
thanks for the help. I got it working, I can register automatically with my twitter account.
Next problem is when I try to login with my Twitter account. This line in the code is called in method "ExternalLogin":
var loginResult = await _userManager.LoginAsync(loginInfo.Login, tenancyName);
but it always returns "UnknownExternalLogin", even though the account is registered and active...
I'm wondering why loginInfo.Login is needed here, as it only holds "LoginProvider" and "ProviderKey". The actual UserInfo is in "loginInfo" itself.
How to solve this?
After some debugging... this is what I found out:
when trying to register through social login, twitter in this case, it takes me back to the Register View. The problem is that twitter does not return the email address. (any solution for that?)
after filling in the register form with an email address, I continue by pressing Submit.
it tries to validate the model through this:
if (!UserName.Equals(EmailAddress) && emailRegex.IsMatch(UserName))
but when initializing the Register View, the UserName is never set. So this line of code will always throw an error.
When looking further, if I provide the "Default" tenant name in the code, it takes me directly to the "Register" method. and there again, the Username is being set using the EmailAddress
model.UserName = model.EmailAddress
but this is also Null...throwing in error as result.
what to do? I think getting the email address from twitter would be the best solution, no?