forked from FoundKeyGang/FoundKey
fix merge of #213
This commit is contained in:
parent
a991740e00
commit
c3c7164dfb
2 changed files with 6 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue