Transform + usernames to - on token initiation (#10692)
This commit is contained in:
1 parent
d6d4e246f9
commit
5f59ef2acf
1 file changed
+3
@@ -272,6 +272,9 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
|
||||
username = available ? username : suggestion || username;
|
||||
}
|
||||
|
||||
// Transform all + to - in username
|
||||
username = username.replace(/\+/g, "-");
|
||||
|
||||
return {
|
||||
props: {
|
||||
...props,
|
||||
|
||||
Reference in new issue
Block a user