Activities of "maliming"

Good luck.

hi

Let me check it remotely.

https://zoom.us/j/92212294885?pwd=VFFCK2xUWmMzQkxMZm5WdXpkNlg2UT09

hi rick

Can you share some code or more details?

Can I use subdomains

https://docs.abp.io/en/abp/4.4/Multi-Tenancy#domain-subdomain-tenant-resolver https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver

hi

What's the output or logs?

hi

You need to use AbpSignInManager.

protected AbpSignInManager SignInManager { get; }

https://support.abp.io/QA/Questions/1857?_se=bGltaW5nLm1hQHZvbG9zb2Z0LmNvbQ==#answer-071a4ee5-b305-e512-b1bf-39ff002b2c16

[DependsOn(typeof(AbpIdentityAspNetCoreModule))]
public class YourWebModule : AbpModule

Can you try to depend of AbpIdentityAspNetCoreModule?

We have created new controller called passwordless2

Please share code of passwordless2

hi

https://github.com/abpframework/abp-samples/pull/103

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity;
using Volo.Abp.Identity.AspNetCore;

namespace PasswordlessAuthentication.Web.Controllers
{
    public class PasswordlessController : AbpController
    {
        protected IdentityUserManager UserManager { get; }

        protected AbpSignInManager SignInManager { get; }

        public PasswordlessController(IdentityUserManager userManager, AbpSignInManager signInManager)
        {
            UserManager = userManager;
            SignInManager = signInManager;
        }

        public virtual async Task<IActionResult> Login(string token, string userId)
        {
            var user = await UserManager.FindByIdAsync(userId);

            var isValid = await UserManager.VerifyUserTokenAsync(user, "PasswordlessLoginProvider", "passwordless-auth", token);
            if (!isValid)
            {
                throw new UnauthorizedAccessException("The token " + token + " is not valid for the user " + userId);
            }

            await UserManager.UpdateSecurityStampAsync(user);

            await SignInManager.SignInAsync(user, isPersistent: false);

            return Redirect("/");
        }
    }
}

Showing 7201 to 7210 of 8480 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 18, 2024, 05:54