mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
confirm password modal by enter key / fix password link for logged in user
This commit is contained in:
@@ -94,7 +94,15 @@ const UserConverter: FC<Props> = ({ user, fetchUser }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const passwordChangeField = <PasswordConfirmation passwordChanged={changePassword} />;
|
||||
const onReturnPressed = () => {
|
||||
if (password && passwordValid) {
|
||||
toInternal();
|
||||
}
|
||||
};
|
||||
|
||||
const passwordChangeField = (
|
||||
<PasswordConfirmation passwordChanged={changePassword} onReturnPressed={onReturnPressed} />
|
||||
);
|
||||
const passwordModal = (
|
||||
<Modal
|
||||
body={passwordChangeField}
|
||||
|
||||
Reference in New Issue
Block a user