Skip to content

Conversation

@amasscyberworld
Copy link
Contributor

Users are no longer able to specify their role during the signup process.
All newly registered users are automatically assigned a predefined default, non-privileged role.
Existing functionality related to signup remains intact (excluding the role assignment by the user).
The changes are thoroughly tested.
Relevant documentation is updated.

Copy link
Contributor

@Abeeujah Abeeujah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to Go

<project timestamp="1749115806127" name="All files">
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
</project>
</coverage>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Job 👍

await expect(registerUser(req, res)).rejects.toThrow('User already exists');
expect(res.status).toHaveBeenCalledWith(400);
});
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool with the tests 👍

role,
role: 'user',
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Abeeujah Abeeujah self-requested a review June 6, 2025 09:39
@Abeeujah Abeeujah merged commit 7b3bcda into skill-mind:master Jun 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants