-
Notifications
You must be signed in to change notification settings - Fork 323
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
Can't reset password on self-hosted portal #588
Comments
@ygrik can you have a look at this please? Thank you :) |
Has this been resolved please? |
UPDATE In confirm-password.ts Then in usersService.updatePassword ad them as headers |
Does this only work for logged in users? I clicked on the reset link and got the following error: "Error in user activation: You're not authorized to perform this operation." |
So this worked for me and no the user isnt logged in |
I had to remove this code from the confirm-password because on load the page, an account confirmation request was being done and a error message was being displayed: (I use this url for confirm user account: "signup?$ConfirmQuery")
And I needed to add this on my usersService.updatePassword, because its was coming null :
Now, its works for me. Thanks @guideveloper! |
Hi, @azaslonov and @ygrik Can we get an update please, I am still expecting an 'official' fix for this. Thanks |
Can you link to a commit/pull request? When I say 'official' fix I mean I am expecting a fix in the master branch, not a DIY adhoc solution. |
Hi Team, Thanks, |
|
NOT THE SAME AS #587
Bug description
When self-hosting the portal a user is unable to reset their password. The link that gets sent in the email works perfectly well for the managed version of the portal, but not for the self-hosted version.
The developer tools in Chrome show that a request to the management api fails with a 401 Unauthorized error.
Reproduction steps
Expected behavior
The process for resetting a password when using a self-hosted version of the portal is identical to the process in the managed version of the portal.
Is your portal managed or self-hosted?
Self-hosted
Release tag or commit SHA (if using self-hosted version)
commit #578, [43441ba]
Environment
Additional context
The email template is configured to generate the link as:
**
**
I think the bug has been introduced in commit #516 which tried to resolve issue #460.
In particular the first error message is thrown on line 86 in confirm-password.ts. The error message is thrown when the application calls usersService.activateUser(queryParams);
There are several issues with having this functionality in the initialize() method, because the same code tries to handle different cases:
The query parameters are not the same, meaning if the usersService.activateUser was executed successfully the identity will be set to 'null' rendering the user unable to login even if they reset their password. (The identity in this case is the user's login name)
The $ConfirmQuery available in the Notification templates in Azure only provides the first three parameters. My guess is that this method should not be called when the user is just trying to reset their password.
The second error message is thrown on line 129 in the confirm-password.ts file. My guess is there is problem with the usersService.updatePassword method. It passes a null object as a header and it makes sense the management API would refuse to accept the request.
The text was updated successfully, but these errors were encountered: