{"size": 372, "ext": "js", "max_stars_repo_path": "packages/core/admin/server/validation/authentication/reset-password.js", "max_stars_repo_name": "Mithenks/strapi", "max_stars_repo_stars_event_min_datetime": "2016-08-12T11:50:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T22:36:15.000Z", "max_issues_repo_path": "packages/core/admin/server/validation/authentication/reset-password.js", "max_issues_repo_name": "Mithenks/strapi", "max_issues_repo_issues_event_min_datetime": "2016-08-12T10:05:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T22:24:00.000Z", "max_forks_repo_path": "packages/core/admin/server/validation/authentication/reset-password.js", "max_forks_repo_name": "Mithenks/strapi", "max_forks_repo_forks_event_min_datetime": "2016-08-29T12:14:54.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T18:46:21.000Z"}
{"max_stars_count": 46173, "max_issues_count": 10397, "max_forks_count": 7214, "avg_line_length": 23.25, "max_line_length": 60, "alphanum_fraction": 0.7069892473}
'use strict';

const { yup, validateYupSchema } = require('@strapi/utils');
const validators = require('../common-validators');

const resetPasswordSchema = yup
  .object()
  .shape({
    resetPasswordToken: yup.string().required(),
    password: validators.password.required(),
  })
  .required()
  .noUnknown();

module.exports = validateYupSchema(resetPasswordSchema);
