mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-02 08:48:32 +09:00
Clean up
This commit is contained in:
parent
ac50bb9225
commit
06bb2a1c7c
@ -75,8 +75,8 @@ export default async (ctx: Koa.Context) => {
|
|||||||
usernameLower: username.toLowerCase(),
|
usernameLower: username.toLowerCase(),
|
||||||
host: null
|
host: null
|
||||||
}, {
|
}, {
|
||||||
limit: 1
|
limit: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
// Check username already used
|
// Check username already used
|
||||||
if (usernameExist !== 0) {
|
if (usernameExist !== 0) {
|
||||||
@ -106,18 +106,12 @@ export default async (ctx: Koa.Context) => {
|
|||||||
host: null,
|
host: null,
|
||||||
keypair: generateKeypair(),
|
keypair: generateKeypair(),
|
||||||
token: secret,
|
token: secret,
|
||||||
email: null,
|
|
||||||
password: hash,
|
password: hash,
|
||||||
isAdmin: config.autoAdmin && usersCount === 0,
|
isAdmin: config.autoAdmin && usersCount === 0,
|
||||||
profile: {
|
profile: {
|
||||||
bio: null,
|
bio: null,
|
||||||
birthday: null,
|
birthday: null,
|
||||||
blood: null,
|
location: null
|
||||||
gender: null,
|
|
||||||
handedness: null,
|
|
||||||
height: null,
|
|
||||||
location: null,
|
|
||||||
weight: null
|
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
autoWatch: false
|
autoWatch: false
|
||||||
|
Loading…
Reference in New Issue
Block a user