fix merge of #213

This commit is contained in:
Johann150 2022-10-26 22:53:06 +02:00
parent a991740e00
commit c3c7164dfb
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 6 additions and 10 deletions

View file

@ -4,7 +4,7 @@ import config from '@/config/index.js';
import { Users, UserProfiles, PasswordResetRequests } from '@/models/index.js';
import { sendEmail } from '@/services/send-email.js';
import { genId } from '@/misc/gen-id.js';
import { HOUR } from '@/const.js';
import { DAY } from '@/const.js';
import define from '../define.js';
export const meta = {
@ -15,12 +15,8 @@ export const meta = {
description: 'Request a users password to be reset.',
limit: {
duration: HOUR,
max: 3,
},
errors: {
duration: DAY,
max: 1,
},
} as const;

View file

@ -1,6 +1,6 @@
import bcrypt from 'bcryptjs';
import { UserProfiles, PasswordResetRequests } from '@/models/index.js';
import { MINUTE } from '@/const.js';
import { DAY, MINUTE } from '@/const.js';
import define from '../define.js';
export const meta = {
@ -11,8 +11,8 @@ export const meta = {
description: 'Complete the password reset that was previously requested.',
limit: {
duration: HOUR,
max: 3,
duration: DAY,
max: 1,
},
errors: {