Skip to content
Snippets Groups Projects
Unverified Commit 9a56c9ad authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Merge pull request #1309 from akihikodaki/key

Add host field to User
parents 27183b21 396bb582
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ export type IUser = {
pinned_post_id: mongo.ObjectID;
is_suspended: boolean;
keywords: string[];
host: string;
account: {
keypair: string;
email: string;
......
......@@ -119,6 +119,7 @@ export default async (req: express.Request, res: express.Response) => {
drive_capacity: 1073741824, // 1GB
username: username,
username_lower: username.toLowerCase(),
host: null,
account: {
keypair: generateKeypair(),
token: secret,
......
db.users.update({ }, { $set: { host: null } }, { multi: true });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment