0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

fix(console): show correct password after reset (#2063)

This commit is contained in:
wangsijie 2022-10-08 17:56:26 +08:00 committed by GitHub
parent fc656aeed2
commit 02c082cb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ const ResetPasswordForm = ({ onClose, userId }: Props) => {
const onSubmit = async () => {
const password = nanoid(8);
await api.patch(`/api/users/${userId}/password`, { json: { password } }).json<User>();
onClose?.(btoa(password));
onClose?.(password);
};
return (