mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Fix NPE (#44760)
Fixes #44278
(cherry picked from commit fc67e54fde)
Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
@@ -159,7 +159,10 @@ export const ResetPasswordDialog = ({
|
||||
id="password"
|
||||
onChange={async (e) => {
|
||||
await onChange(e);
|
||||
if (passwordConfirmation !== e.currentTarget.value) {
|
||||
if (
|
||||
e.currentTarget &&
|
||||
passwordConfirmation !== e.currentTarget.value
|
||||
) {
|
||||
setError("passwordConfirmation", {
|
||||
message: t("confirmPasswordDoesNotMatch"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user