Stuff
This commit is contained in:
@@ -100,7 +100,7 @@ export default function UserCreator({user, users, permissions, onFinish}: Props)
|
||||
if (!name || name.trim().length === 0) return toast.error("Please enter a valid name!");
|
||||
if (!email || email.trim().length === 0) return toast.error("Please enter a valid e-mail address!");
|
||||
if (users.map((x) => x.email).includes(email.trim())) return toast.error("That e-mail is already in use!");
|
||||
if (!password || password.trim().length === 0) return toast.error("Please enter a valid password!");
|
||||
if (!password || password.trim().length < 6) return toast.error("Please enter a valid password!");
|
||||
if (password !== confirmPassword) return toast.error("The passwords do not match!");
|
||||
|
||||
setIsLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user