This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/app/Validators/ResetPassword.js

17 lines
325 B
JavaScript

'use strict'
class ResetPassword {
get rules() {
return {
password: 'required|string|min:6', 'confirm': 'required|string|min:6',
}
}
get messages() {
return {
'required': 'This is required',
'min': 'Password must be at least 6 chars long',
}
}
}
module.exports = ResetPassword