nanka iroiro (#6853)
* wip * Update maps.ts * wip * wip * wip * wip * Update base.vue * wip * wip * wip * wip * Update link.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update privacy.vue * wip * wip * wip * wip * Update range.vue * wip * wip * wip * wip * Update profile.vue * wip * Update a.vue * Update index.vue * wip * Update sidebar.vue * wip * wip * Update account-info.vue * Update a.vue * wip * wip * Update sounds.vue * wip * wip * wip * wip * wip * wip * wip * wip * Update account-info.vue * Update account-info.vue * wip * wip * wip * Update d-persimmon.json5 * wip
This commit is contained in:
@@ -21,10 +21,11 @@ import apiServer from './api';
|
||||
import { sum } from '../prelude/array';
|
||||
import Logger from '../services/logger';
|
||||
import { program } from '../argv';
|
||||
import { UserProfiles } from '../models';
|
||||
import { UserProfiles, Users } from '../models';
|
||||
import { networkChart } from '../services/chart';
|
||||
import { genAvatar } from '../misc/gen-avatar';
|
||||
import { createTemp } from '../misc/create-temp';
|
||||
import { publishMainStream } from '../services/stream';
|
||||
|
||||
export const serverLogger = new Logger('server', 'gray', false);
|
||||
|
||||
@@ -83,10 +84,15 @@ router.get('/verify-email/:code', async ctx => {
|
||||
ctx.body = 'Verify succeeded!';
|
||||
ctx.status = 200;
|
||||
|
||||
UserProfiles.update({ userId: profile.userId }, {
|
||||
await UserProfiles.update({ userId: profile.userId }, {
|
||||
emailVerified: true,
|
||||
emailVerifyCode: null
|
||||
});
|
||||
|
||||
publishMainStream(profile.userId, 'meUpdated', await Users.pack(profile.userId, profile.userId, {
|
||||
detail: true,
|
||||
includeSecrets: true
|
||||
}));
|
||||
} else {
|
||||
ctx.status = 404;
|
||||
}
|
||||
|
Reference in New Issue
Block a user