nestjs_auth init..
This commit is contained in:
parent
0ffec1be21
commit
64cd01b669
@ -14,7 +14,7 @@ export class AuthController {
|
|||||||
@UseGuards(LocalAuthGuard)
|
@UseGuards(LocalAuthGuard)
|
||||||
@Post('login')
|
@Post('login')
|
||||||
login(@Request() req) {
|
login(@Request() req) {
|
||||||
console.log(req)
|
//console.log(req)
|
||||||
return this.authService.login(req.user)
|
return this.authService.login(req.user)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user