small improvements

This commit is contained in:
daniel31x13
2024-05-16 15:50:43 -04:00
parent f68ca100a1
commit 142af9b5c0
3 changed files with 21 additions and 7 deletions
@@ -148,7 +148,11 @@ export default async function updateUserById(
};
}
sendChangeEmailVerificationRequest(user.email, data.email, data.name);
sendChangeEmailVerificationRequest(
user.email,
data.email,
data.name.trim()
);
}
// Other settings / Apply changes
@@ -161,7 +165,7 @@ export default async function updateUserById(
id: userId,
},
data: {
name: data.name,
name: data.name.trim(),
username: data.username?.toLowerCase().trim(),
isPrivate: data.isPrivate,
image: