Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get past Change Password Required #741

Closed
nattyp opened this issue Jul 13, 2020 · 4 comments
Closed

Unable to get past Change Password Required #741

nattyp opened this issue Jul 13, 2020 · 4 comments
Assignees
Labels

Comments

@nattyp
Copy link

nattyp commented Jul 13, 2020

Unable to get pass Change Password Required

Description

I am unable to login via the API. I keep getting RC 203, even after resetting the password

Steps to reproduce

I am using Postman 7.2.7.1 Mac desktop client.

when I login,

POST http://localhost:9011/api/login
{
  "loginId": "ncbadmin@smsja.net",
  "password": "6Krcasr&j",
  "applicationId": "8901cb2e-d900-4773-afd0-4c05494efe40"
}

I get a 203 response instead of a 200 response.

{
    "changePasswordId": "PNrfvTEpDF4YvPLH1IEokO151k99FbIYc9zBxWFrcCg",
    "changePasswordReason": "Validation"
}

If I change the password with

POST http://localhost:9011/api/user/change-password
{
  "currentPassword": "n9P#XSml",
  "password": "n9Pasr$3ml",
  "loginId": "ncbadmin@smsja.net"
}

I get back a 200 response (no body), and when I try to login again with the new password, the cycle repeats.

Affects versions

I am running 1.16.0 on CentOS 7.8

Expected behavior

I expected the POST /api/login to work given that the credentials were good.

The password change reasons

  • Administrative
  • Breached
  • Expired
  • Validation

may need additional clarification as how to respond to them.

Screenshots

The Tenant Password Settings

Screen Shot 2020-07-13 at 10 20 22 AM

Platform

(Please complete the following information)

  • Device: Desktop
  • OS: Mac OS Catalina
  • Browser + version: Safari 13.0.5, Chrome 83.0.4103.116
  • Database Maria DB 10.3

Additional context

I eventually got out of the cycle by

Setting the new password by

PATCH http://localhost:9011/api/user/78e27d7d...
{
  "user": {
    "skipVerification": true,
    "email": "admin@email",
    "passwordChangeRequired": false,
    "username": "ncbadmin",
    "password": "Ka44sr&j"
  }
}

After which I was able to login.

@mooreds mooreds changed the title Unable to get pass Change Password Required Unable to get past Change Password Required Jul 14, 2020
@mooreds
Copy link
Collaborator

mooreds commented Jul 14, 2020

Looks like it might be a regression? Poster here: https://fusionauth.io/community/forum/topic/225/all-password-change-apis-failing was able to get the change password API to work if they rolled back to 1.16?

@mooreds mooreds added the bug Something isn't working label Jul 14, 2020
@bguyza bguyza added this to Backlog in FusionAuth Issues via automation Jul 15, 2020
@bguyza bguyza moved this from Backlog to In progress in FusionAuth Issues Jul 15, 2020
@bguyza
Copy link

bguyza commented Jul 16, 2020

@nattyp ,
I have been trying to recreate your issue on both the most current version and 1.16.0. Unfortunately I have not been able to. Could you confirm your Tenant Password Settings as indicated in the screenshot above? It might be helpful to see your Application's "Login API Settings" too. Finally, if you happen to have any additional logging that you think might be informative, I would be happy to continue troubleshooting.
Thanks.

@nattyp
Copy link
Author

nattyp commented Jul 21, 2020

As I have passed this issue, if you are unable to recreate it based on what I have provide, I am willing to close this issue.

@robotdan robotdan moved this from In progress to Backlog in FusionAuth Issues Jul 21, 2020
@robotdan robotdan removed this from Backlog in FusionAuth Issues Jul 21, 2020
@robotdan
Copy link
Member

Thanks @nattyp closing for now. If you run into this again, please re-open or let us know! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants