Skip to content

Commit

Permalink
STCOR-795 optionally use users-keycloak endpoint for password reset (#…
Browse files Browse the repository at this point in the history
…1399)

When the `users-keycloak` interface is available, use the endpoints it
provides in place of the legacy endpoints.

Refs STCOR-795, UIU-3031
  • Loading branch information
zburke committed Mar 28, 2024
1 parent 34b3b09 commit 0867a8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class CreateResetPasswordControl extends Component {
},
} = stripes;

const path = `${url}/bl-users/password-reset/${isValidToken ? 'reset' : 'validate'}`;
const interfacePath = stripes.hasInterface('users-keycloak') ? 'users-keycloak' : 'bl-users';
const path = `${url}/${interfacePath}/password-reset/${isValidToken ? 'reset' : 'validate'}`;

fetch(path, {
method: 'POST',
Expand Down

0 comments on commit 0867a8e

Please sign in to comment.