Skip to content

Commit

Permalink
optionally use users-keycloak endpoint for password reset
Browse files Browse the repository at this point in the history
When the `users-keycloak` interface is available, use it in place of the
legacy endpoint.

Refs UIU-3031
  • Loading branch information
zburke committed Jan 19, 2024
1 parent c75f53b commit 746ef01
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 746ef01

Please sign in to comment.