mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Do not save 名無し as the name of a new user
This commit is contained in:
parent
99b14f01b3
commit
06400ea2f5
@ -47,7 +47,6 @@ export default async (req: express.Request, res: express.Response) => {
|
||||
|
||||
const username = req.body['username'];
|
||||
const password = req.body['password'];
|
||||
const name = '名無し';
|
||||
|
||||
// Validate username
|
||||
if (!validateUsername(username)) {
|
||||
@ -113,7 +112,7 @@ export default async (req: express.Request, res: express.Response) => {
|
||||
description: null,
|
||||
followersCount: 0,
|
||||
followingCount: 0,
|
||||
name: name,
|
||||
name: null,
|
||||
postsCount: 0,
|
||||
driveCapacity: 1024 * 1024 * 128, // 128MiB
|
||||
username: username,
|
||||
|
Loading…
Reference in New Issue
Block a user