For example, the user pass the userName
, email
to me, and I would like to have a custom validation for check the DB's user
table have a column with the both userName
equal and email
equal and status equal 1
or not? How the customised validation implements?
For example:
User input:
userName: Peter
email: [email protected]
In case 1, in the DB's user table:
Success: userName: Peter , email: [email protected], status: 1
Fail: userName: Peter , email: [email protected], status: 0
Fail: userName: Mary , email: [email protected], status: 1
Fail: userName: Peter , email: [email protected], status: 1