This commit is contained in:
syuilo 2019-04-17 14:32:59 +09:00
parent 85959a3b9b
commit 0ede390fef
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
17 changed files with 17 additions and 17 deletions

View file

@ -19,7 +19,7 @@ export const meta = {
export default define(meta, async (ps, user) => {
const token = ps.token.replace(/\s/g, '');
const profile = await UserProfiles.findOne({ userId: user.id }).then(ensure);
const profile = await UserProfiles.findOne(user.id).then(ensure);
if (profile.twoFactorTempSecret == null) {
throw new Error('二段階認証の設定が開始されていません');