Open Closed

登录邮件确认不可用 #8182


User avatar
0
kingdom created

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.0
  • UI Type: MVC
  • Database (SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no (single)
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

双因素登录邮件确认不可用,可自动发送邮件,并收到邮件,打开连接后,登录失败...

<br> 1 :收到邮件:

2: 确认邮件

3: "Login to the application" 登录回到 Login Page

4: 登录重复邮件确认,一直循环,无法进入后台.....


17 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi.

    Please enable the Debug logs and reproduce your problem then share the Logs.txt file.

    public class Program
    {
        public async static Task<int> Main(string[] args)
        {
            Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Information()
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
                .Enrich.FromLogContext()
                .WriteTo.Async(c => c.File("Logs/logs.txt"))
                .WriteTo.Async(c => c.Console())
                .CreateLogger();
    

    Thanks

    liming.ma@volosoft.com

  • User Avatar
    0
    kingdom created

    OpenIddict.Validation.AspNetCore was not authenticated.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please reproduce your problem and share full Logs.txt file.

    Thanks.

  • User Avatar
    0
    kingdom created

    full logs send email

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hiu

    I haven't received it. can you share it via https://wetransfer.com/

  • User Avatar
    0
    kingdom created

    did you receive the email ??

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Not yet. Can you share it via https://wetransfer.com/ ?

    You can leave the wetransfer URL here.

    Thanks.

  • User Avatar
    0
    kingdom created

    https://we.tl/t-wMDxSzSmZk

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have checked your logs.

    The SignInManager.PasswordSignInAsync return IsNotAllowed.

    Can you check the user data(EmailConfirmed and PhoneNumberConfirmed) ?


    Or can you share the steps to reproduce this in a new template project?

    Thanks.

  • User Avatar
    0
    kingdom created

    hi maliming

    no errors were found in the user data check.

    how to debug "SignInManager.PasswordSignInAsync" fun

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    no errors were found in the user data check.

    You can check the Identity settings.

    how to debug "SignInManager.PasswordSignInAsync" fun

    This will be difficult. Can you share the steps to reproduce this in a new template project?

  • User Avatar
    0
    kingdom created

    only the "confirmed email" option

    this project uses the new template.generated using abp suite, without any other special customization

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Is the 4f94a18a-985a-4682-8055-3a159cbc3e4b user confirmed his email?

    Can you check it in the database?

  • User Avatar
    0
    kingdom created

    I think I made a mistake. using the user panel option is normal, what's the difference?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    This method returns false

    https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Core/src/SignInManager.cs#L136-L154

    Have you set the log configuration as

  • User Avatar
    0
    kingdom created

    hi: maliming

    my problem has been solved. Thank you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great. 👍

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11