Finished up with email password reset system.

This commit is contained in:
rainbow napkin 2024-12-28 15:36:42 -05:00
parent 3671b43789
commit 478edeeddf
13 changed files with 233 additions and 34 deletions

View file

@ -14,18 +14,16 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/
//Config
const config = require('../../../../config.json');
//NPM Imports
const {validationResult, matchedData} = require('express-validator');
//local imports
const passwordResetModel = require('../../../schemas/passwordResetSchema');
const altchaUtils = require('../../../utils/altchaUtils');
const sessionUtils = require('../../../utils/sessionUtils');
const altchaUtils = require('../../../utils/altchaUtils');
const {exceptionHandler, errorHandler} = require('../../../utils/loggerUtils');
//gateway for resetting password
module.exports.post = async function(req, res){
try{
//Check for validation errors