api-server-nodejs
api-server-nodejs copied to clipboard
Default User Role - Save NULL Value
On Creation, the user should be assigned to the "USER" role = value 2
Currently, the users are created with a NULL value for the ROLE column.
Here is the response to the registration request:
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE2Nzc4NDViLTEwODctNDliOS05N2I1LTlkYzM1YWFlYTE0YyIsInVzZXJuYW1lIjoidGVzdCIsImVtYWlsIjoidGVzdEBhcHBzZWVkLnVzIiwiaWF0IjoxNjY5NzM1NTczLCJleHAiOjE2Njk4MjE5NzN9.9Lg4Ryw75xLd4iOl-V3Pp-lx9rt6zjXfc5DYTCYhvYQ",
"user": {
"id": "a677845b-1087-49b9-97b5-9dc35aaea14c",
"username": "test",
"email": "[email protected]",
"date": "2022-11-29T15:21:51.000Z",
"user_role": null
}
}
could you explain it a bit more
Hello!
Sorry for the delay. The new AppSeed Service now manages the project and related issues:
https://app-generator.dev/ - Open-Source Platform.
Ty!