-
Notifications
You must be signed in to change notification settings - Fork 297
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
General
: Ensure manually created users can log in
#7209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS5. I was able to log in with a new user that did not have any roles specified during creation 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my local setup. Everything worked as described above.
Checklist
General
Server
Motivation and Context
When manually creating users as admin, the admin can select from a few roles the user can have. By default none of the options is selected. However, to be able to construct a valid token for login the user needs to have at lease one role. This is typically the STUDENT/USER role that has no special permissions.
Description
Updated the user creation logic to always include at least this role if no other ones have been defined for the user.
Steps for Testing
Prerequisites:
Review Progress
Code Review
Manual Tests
Test Coverage