Skip to content

Commit d9a9e11

Browse files
committed
fix: Don’t trim or lowercase usernames
Since instance usernames aren’t as closely regulated as CM emails, we shouldn’t enforce as much in the UI. https://harperdb.atlassian.net/browse/STUDIO-420
1 parent 27969dd commit d9a9e11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/zod/username.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import { z } from 'zod';
22

33
export const zodRequireUsername = z
44
.string()
5-
.nonempty({ error: 'Please enter a username.' })
6-
.trim()
7-
.toLowerCase();
5+
.nonempty({ error: 'Please enter a username.' });

0 commit comments

Comments
 (0)