Merge branch 'Lino' of https://github.com/IO420/api-nexus into Carlos
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import {
|
||||
Injectable,
|
||||
Logger,
|
||||
NotFoundException,
|
||||
UnauthorizedException,
|
||||
} from '@nestjs/common';
|
||||
import { Injectable, NotFoundException } from '@nestjs/common';
|
||||
import { Response } from 'express';
|
||||
import { CreateUserDto } from './dto/create-user.dto';
|
||||
import { UpdateUserDto } from './dto/update-user.dto';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { User } from './entities/user.entity';
|
||||
import { Repository } from 'typeorm';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
|
||||
@Injectable()
|
||||
export class UserService {
|
||||
@@ -32,6 +28,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
async Login(data: CreateUserDto) {
|
||||
return await this.findOneByNameandPassword(data);
|
||||
const user = await this.findOneByNameandPassword(data);
|
||||
return user;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user