make email lower case in pangctl reset password closes #1210

This commit is contained in:
miloschwartz
2025-08-13 21:59:32 -07:00
parent eeb1d4954d
commit 74d2527af5
2 changed files with 17 additions and 11 deletions

View File

@@ -32,7 +32,8 @@ export const setAdminCredentials: CommandModule<{}, SetAdminCredentialsArgs> = {
},
handler: async (argv: { email: string; password: string }) => {
try {
const { email, password } = argv;
let { email, password } = argv;
email = email.trim().toLowerCase();
const parsed = passwordSchema.safeParse(password);