Base solution for your next web application
Open Closed

ERROR ON FIRST LOG IN ON ASPNETZERO TEMPLATE #5354


User avatar
0
muleso created

{"result":null,"targetUrl":"/Account/ResetPassword?UserId=1&ResetCode=90B67FC5DF&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}


10 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi @muleso,

    Both Host and Tenant admin users are required to change password on next login.

    As indicated in <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.EntityFrameworkCore/Migrations/Seed/Host/HostRoleAndUserCreator.cs#L55">https://github.com/aspnetzero/aspnet-ze ... tor.cs#L55</a> <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.EntityFrameworkCore/Migrations/Seed/Tenants/TenantRoleAndUserBuilder.cs#L63">https://github.com/aspnetzero/aspnet-ze ... der.cs#L63</a>

  • User Avatar
    0
    geek1913 created

    please see this thread: [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=11429&start=10])

    follow the steps to resolve this issue.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Or you can follow the official getting started guide <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Core">https://aspnetzero.com/Documents/Getting-Started-Core</a>. It explains how to run the project properly.

  • User Avatar
    0
    [email protected] created

    OK, I've downloaded a test version of the code (ASP .Net CORE MVC & jQuery). I've followed the instructions on the getting started page: <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Core">https://aspnetzero.com/Documents/Getting-Started-Core</a>

    I've run into this same issue as identified in this thread, and I've downloaded the zip file containing the bat file that deletes all of the obj and bin folders. By the way, there was already a bat file of the same name in the solution. I've tried both of them and I still have an issue attempting to log in for the first time. The result I get is:

    {"result":null,"targetUrl":"/Account/ResetPassword?UserId=1&ResetCode=8DDCC245E9&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}

    I can see in the database that the last login time is updated for this user.

    Any help would be greatly appreciated.

    By the way, I've downloaded the ASPBoilerPlate application as well and have no problems with that solution at all.

    Thank you!

  • User Avatar
    0
    alper created
    Support Team

    run "yarn" command to install client side dependencies.

  • User Avatar
    0
    [email protected] created

    I did run yarn prior to running the app for the first time... I very carefully followed the instructions.

    I even deleted everything, database included, and unzipped the downloaded code and started over this morning with the exact same results...

    This is version 5.5.2 of the ASP .Net Core MVC and jQuery solution.

    The latest NodeJS is installed, Gulp is installed, yarn is installed and I ran it from the *.Web.Mvc directory before ever opening visual studio. I then opened the web solution, created a blank database on my db server, updated the appsettings.json connection string to point to the server and database. I then ran update-database which properly setup my database objects. I ran the solution and got the login screen to display. I logged in with admin / 123qwe and got the following:

    {"result":null,"targetUrl":"/Account/ResetPassword?UserId=1&ResetCode=4E10829B05&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}

  • User Avatar
    0
    [email protected] created

    I would like to add that if I run yarn again it says: warning package.json: No license field warning [email protected]: No license field [1/4] Resolving packages... success Already up-to-date. Done in 0.52s.

  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi,

    After running yarn, you need to run "npm run create-bundles" command.

  • User Avatar
    0
    [email protected] created

    That did it! Thank you so much!!!

  • User Avatar
    0
    alirizaadiyahsi created

    Thanks for feedback