mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
fix status page forgot password bug
This commit is contained in:
parent
6df71c40c9
commit
5c5c7eea7d
@ -147,7 +147,7 @@ const FilePicker: FunctionComponent<ComponentProps> = (
|
||||
<div className="text-right flex justify-end">
|
||||
<Icon
|
||||
icon={IconProp.Close}
|
||||
className="bg-gray-400 rounded text-white h-7 w-7 align-right items-right p-1 absolute hover:bg-gray-500 cursor-pointer"
|
||||
className="bg-gray-400 rounded text-white h-7 w-7 align-right items-right p-1 absolute hover:bg-gray-500 cursor-pointer -ml-7"
|
||||
size={SizeProp.Regular}
|
||||
onClick={() => {
|
||||
const tempFileModel: Array<FileModel> = [
|
||||
@ -168,7 +168,11 @@ const FilePicker: FunctionComponent<ComponentProps> = (
|
||||
};
|
||||
|
||||
if (isLoading) {
|
||||
return <ComponentLoader />;
|
||||
return (
|
||||
<div className="flex justify-center w-full">
|
||||
<ComponentLoader />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -93,7 +93,7 @@ router.post(
|
||||
const token: string = ObjectID.generate().toString();
|
||||
await StatusPagePrivateUserService.updateOneBy({
|
||||
query: {
|
||||
_id: user._id!,
|
||||
_id: alreadySavedUser._id!,
|
||||
},
|
||||
data: {
|
||||
resetPasswordToken: token,
|
||||
|
Loading…
Reference in New Issue
Block a user