api-server-nodejs icon indicating copy to clipboard operation
api-server-nodejs copied to clipboard

Default User Role - Save NULL Value

Open app-generator opened this issue 3 years ago • 1 comments

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
    }
}

app-generator avatar Nov 29 '22 15:11 app-generator

could you explain it a bit more

shiva5152 avatar Feb 21 '24 12:02 shiva5152

Hello!

Sorry for the delay. The new AppSeed Service now manages the project and related issues:

https://app-generator.dev/ - Open-Source Platform.

Ty!

app-generator avatar Dec 18 '24 19:12 app-generator