forked from ttc/micro-service-api
-api เส้น register
-เครื่องมือต่างๆ (ไม่สมบูร)
This commit is contained in:
@@ -6,7 +6,7 @@ export class LoginService {
|
||||
constructor() {
|
||||
this.generalService = new GeneralService()
|
||||
}
|
||||
async verifyLogin(database, username, password) {
|
||||
async verifyLogin(database, username) {
|
||||
this.generalService.devhint(2, 'loginservice.js', `verifyLogin() start for username=${username}`)
|
||||
|
||||
let user = null
|
||||
@@ -15,7 +15,7 @@ export class LoginService {
|
||||
let sql = `
|
||||
SELECT usrseq, usrnam, usrorg, usrrol, usrpwd, usrthinam, usrthilstnam
|
||||
FROM nuttakit.usrmst
|
||||
WHERE usrnam = $1
|
||||
WHERE usrnam = $1 OR (usreml = $1)
|
||||
`
|
||||
let params = [username]
|
||||
const rows = await this.generalService.executeQueryParam(database, sql, params)
|
||||
|
||||
Reference in New Issue
Block a user