add admin user
This commit is contained in:
parent
3cc66f4e97
commit
8fb48f7243
2 changed files with 8 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ export class AuthController {
|
|||
async login(loginRequest : LoginRequestDto): Promise<LoginResponseDto> {
|
||||
const userName :string|undefined = loginRequest.userName;
|
||||
const password :string|undefined = loginRequest.password;
|
||||
console.log("user", userName, " is trying to log in with password", password)
|
||||
console.log("user", userName, " is trying to log in")
|
||||
if (!userName || !password) {
|
||||
throw new ValidationError("Username and password are required");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue