Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default User Role - Save NULL Value #25

Open
app-generator opened this issue Nov 29, 2022 · 1 comment
Open

Default User Role - Save NULL Value #25

app-generator opened this issue Nov 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@app-generator
Copy link
Owner

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 app-generator added the bug Something isn't working label Nov 29, 2022
@shiva5152
Copy link

could you explain it a bit more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants