| ... | ... | @@ -64,7 +64,7 @@ Contains two services, one for registeration and one for login. |
|
|
|
|
|
|
|
## user.entity.ts
|
|
|
|
|
|
|
|
Reflects the datababse table for users. Contains the username, the hashed person and possible relations to the Game_Person table.
|
|
|
|
Reflects the datababse table for users. Contains the username, the hashed password and possible relations to the Game_Person table.
|
|
|
|
|
|
|
|
With `@Exclude()` decorator it's possible to exclude certain columns from the response object. You need to use `@UseInterceptors(ClassSerializerInterceptor)` decorator in the controller for it to work.
|
|
|
|
|
| ... | ... | @@ -84,4 +84,4 @@ The AuthGuard located in shared folder verifies the user's token. If the validat |
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Routes using the `@User` decorator MUST also use the AuthGuard decorator!** |
|
|
|
**Routes using the `@User` decorator MUST use either the AuthGuard or RolesGuard decorator!** |