From 9626abfa3b8dbb1eb0fbab08d9a5caa82a80d304 Mon Sep 17 00:00:00 2001 From: stanleyowen <69080584+stanleyowen@users.noreply.github.com> Date: Thu, 13 May 2021 11:54:04 +0700 Subject: [PATCH] Resolved Issue of Error in Requesting Forgot Password Reset Link (Fixed #152) --- server/models/otp.model.js | 2 +- server/models/token.model.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/models/otp.model.js b/server/models/otp.model.js index ce906868..1b744ca6 100644 --- a/server/models/otp.model.js +++ b/server/models/otp.model.js @@ -10,7 +10,7 @@ const tokenSchema = new Schema ({ data: { type: String, required: true, - minlength: 32, + minlength: 64, maxlength: 64 }, iv: { type: String, diff --git a/server/models/token.model.js b/server/models/token.model.js index d753f89a..19046fcf 100644 --- a/server/models/token.model.js +++ b/server/models/token.model.js @@ -21,8 +21,8 @@ const tokenSchema = new Schema ({ data: { type: String, required: true, - minlength: 32, - maxlength: 32 + minlength: 64, + maxlength: 64 }, iv: { type: String, required: true,