- Removed the minimum password length validation from the backend, simplifying the password reset process. - Updated the password encryption method to utilize `EncryptUtil`, enhancing security and maintainability. - Adjusted the `UserPasswordResetModal` component to reset alert states upon closing, improving user feedback. - Modified the z-index values in the `Popover` and `Select` components for better layering and visibility in the UI. These changes streamline the password reset functionality and enhance the overall user interface, ensuring a more intuitive experience for administrators.
32 lines
921 B
TypeScript
32 lines
921 B
TypeScript
"use client";
|
|
|
|
import * as React from "react";
|
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const Popover = PopoverPrimitive.Root;
|
|
|
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
|
|
const PopoverContent = React.forwardRef<
|
|
React.ElementRef<typeof PopoverPrimitive.Content>,
|
|
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
|
|
>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
|
|
<PopoverPrimitive.Portal>
|
|
<PopoverPrimitive.Content
|
|
ref={ref}
|
|
align={align}
|
|
sideOffset={sideOffset}
|
|
className={cn(
|
|
"bg-popover text-popover-foreground z-[2000] w-72 rounded-md border p-4 shadow-md outline-none",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
</PopoverPrimitive.Portal>
|
|
));
|
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
|
export { Popover, PopoverTrigger, PopoverContent };
|