diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-06 06:25:35 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-06 06:25:35 +0900 |
| commit | 06bb2a1c7c922530a140628536ce5a6ee0386955 (patch) | |
| tree | e0e69b431fdff1975cfb4bdfd4f83ab6e43fe09d /src | |
| parent | Resolve #3137 (diff) | |
| download | sharkey-06bb2a1c7c922530a140628536ce5a6ee0386955.tar.gz sharkey-06bb2a1c7c922530a140628536ce5a6ee0386955.tar.bz2 sharkey-06bb2a1c7c922530a140628536ce5a6ee0386955.zip | |
Clean up
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/api/private/signup.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts index ab7342d6b8..ec9892680c 100644 --- a/src/server/api/private/signup.ts +++ b/src/server/api/private/signup.ts @@ -75,8 +75,8 @@ export default async (ctx: Koa.Context) => { usernameLower: username.toLowerCase(), host: null }, { - limit: 1 - }); + limit: 1 + }); // Check username already used if (usernameExist !== 0) { @@ -106,18 +106,12 @@ export default async (ctx: Koa.Context) => { host: null, keypair: generateKeypair(), token: secret, - email: null, password: hash, isAdmin: config.autoAdmin && usersCount === 0, profile: { bio: null, birthday: null, - blood: null, - gender: null, - handedness: null, - height: null, - location: null, - weight: null + location: null }, settings: { autoWatch: false |