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:
parent
fc656aeed2
commit
02c082cb71
1 changed files with 1 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Reference in a new issue