เช็ค User ซ้ำ

This commit is contained in:
x2Skyz
2025-11-23 15:54:16 +07:00
parent 02b1a6f31b
commit 18a8548596
4 changed files with 21 additions and 7 deletions

View File

@@ -40,6 +40,15 @@ export class RegisterService {
}
}
async checkUserDuplicate(database, email) {
const sql = `
SELECT * FROM nuttakit.usrmst
WHERE usreml = $1
`
const params = [email]
const aryResult = await this.generalService.executeQueryParam(database, sql, params);
return aryResult;
}
async genNum(database) {
const sql = `