Base solution for your next web application
Open Closed

change password on next login Error in specific enviroments #12386


User avatar
0
otoarenacom created

Hello, after created users, I set passwords and checked only active and Should change password on next login. as true. (we just started the project, haven't added any single code line yet) When I fill infos of any user and try to login in my development pc, it redirects reset password page and password changing successfully. Unfortunately same user account, or any other user accounts , getting the error in below image in different computers, including in server machine. Not sure why it is working in my development pc but it also prevents me debugging, because it is also working in localhost visual studio enviroment. I am also attaching error log picture. Project is mvc based not angular.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @otoarenacom

    Can we access your app on the server ? Can you send its URL to [email protected] ?

    Thanks,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    otoarenacom created

    Hi @otoarenacom

    Can we access your app on the server ? Can you send its URL to [email protected] ?

    Thanks,

    ok sending email

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @otoarenacom

    We have reviewed the information you sent with the e-mail address. Here on the ResetPassword page, Password reset code expired. We think that the reason for the error is that the server provider time and the local computer time do not match. Here you can provide a Clock provider for the server so that the provider and your local computer date and time will be consistent. Here you need to set the application date and time according to the server's UTC information. You can specify this at the start of the application with the sample code below. You can review this document for more information. Related Setting Document

    You can change the used clock provider in the PreInitialize method of your Core module.

    Clock.Provider = ClockProviders.Utc;
    

    If you do not want to change the time zone for the application, you will need to configure your server's time zone. The reason the application gives an error is because the time zones do not match, so it works correctly in your local.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)