login dto updated
This commit is contained in:
parent
b07e607a48
commit
3ddaa09211
@ -1,12 +1,23 @@
|
|||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
import { IsString } from 'class-validator';
|
import { IsString } from 'class-validator';
|
||||||
|
|
||||||
|
// export class AuthLoginDTO {
|
||||||
|
// @ApiProperty({ required: true })
|
||||||
|
// @IsString()
|
||||||
|
// p_emailaddr: string;
|
||||||
|
|
||||||
|
// @ApiProperty({ required: true })
|
||||||
|
// @IsString()
|
||||||
|
// p_password: string;
|
||||||
|
// }
|
||||||
|
|
||||||
export class AuthLoginDTO {
|
export class AuthLoginDTO {
|
||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: true })
|
||||||
@IsString()
|
@IsString()
|
||||||
p_emailaddr: string;
|
P_EMAILADDR: string;
|
||||||
|
|
||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: true })
|
||||||
@IsString()
|
@IsString()
|
||||||
p_password: string;
|
P_PASSWORD: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,15 +18,15 @@ export class AuthService {
|
|||||||
|
|
||||||
const result = await connection.execute(
|
const result = await connection.execute(
|
||||||
`BEGIN
|
`BEGIN
|
||||||
USERLOGIN_PKG.ValidateUser(:p_emailaddr,:p_password,:p_login_cursor);
|
USERLOGIN_PKG.ValidateUser(:P_EMAILADDR,:P_PASSWORD,:p_login_cursor);
|
||||||
END;`,
|
END;`,
|
||||||
{
|
{
|
||||||
p_emailaddr: {
|
P_EMAILADDR: {
|
||||||
val: body.p_emailaddr,
|
val: body.P_EMAILADDR,
|
||||||
type: oracledb.DB_TYPE_NVARCHAR,
|
type: oracledb.DB_TYPE_NVARCHAR,
|
||||||
},
|
},
|
||||||
p_password: {
|
P_PASSWORD: {
|
||||||
val: body.p_password,
|
val: body.P_PASSWORD,
|
||||||
type: oracledb.DB_TYPE_NVARCHAR,
|
type: oracledb.DB_TYPE_NVARCHAR,
|
||||||
},
|
},
|
||||||
p_login_cursor: {
|
p_login_cursor: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user