first commit

This commit is contained in:
sajjadtalkhabi
2026-05-13 01:43:05 +03:30
commit d2a577f254
297 changed files with 36274 additions and 0 deletions
@@ -0,0 +1,14 @@
import { ref, string } from 'yup'
export const passwordConfirmationRule = string()
.required()
.oneOf([ref('password')], 'تکرار رمزعبور با رمزعبور یکسان نیست')
export const optionalPasswordConfirmationRule = string()
.nullable()
.notRequired()
.test('match', 'تکرار رمزعبور با رمزعبور یکسان نیست', function (value) {
const pw = this.parent.password
if (!pw && !value) return true
return value === pw
})