вот как выглядит моя лицевая панель: >
Код: Выделить всё
@page
@model RegisterModel
[i]
Email [/i]
[i]
Code :
RD. Congo (+243)
Gabon (+241)
Iran (+98)
Tadjikistan (+992)
Numero [/i]
[i]
[url={HtmlEncoder.Default.Encode(callbackUrl)}]en cliquant ici.[/url].");
if (_userManager.Options.SignIn.RequireConfirmedAccount)
{
return RedirectToPage("RegisterConfirmation", new { email = Input.Email, returnUrl = returnUrl });
}
else
{
if (User.IsInRole(DetailStatic.Role_Admin))
{
TempData["success"] = "Enregistrement reussi";
}
else
{
await _signInManager.SignInAsync(user, isPersistent: false);
}
TempData["welcomeBilokos"] = "Mbote! Boyei malamu na Bilokos, esika ya solo mpo na koteka mpe kosomba biloko na facilite....";
return LocalRedirect(returnUrl);
}
}
foreach (var error in result.Errors)
{
ModelState.AddModelError(string.Empty, error.Description);
}
}
// If we got this far, something failed, redisplay form
return Page();
}
private ApplicationUser CreateUser()
{
try
{
return Activator.CreateInstance();
}
catch
{
throw new InvalidOperationException($"Can't create an instance of '{nameof(IdentityUser)}'. " +
$"Ensure that '{nameof(IdentityUser)}' is not an abstract class and has a parameterless constructor, or alternatively " +
$"override the register page in /Areas/Identity/Pages/Account/Register.cshtml");
}
}
private IUserEmailStore GetEmailStore()
{
if (!_userManager.SupportsUserEmail)
{
throw new NotSupportedException("The default UI requires a user store with email support.");
}
return (IUserEmailStore)_userStore;
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... pplication
Мобильная версия