fix status page forgot password bug

This commit is contained in:
Simon Larsen 2023-01-31 15:12:02 +00:00
parent 6df71c40c9
commit 5c5c7eea7d
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 7 additions and 3 deletions

View File

@ -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 (

View File

@ -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,