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

Fixed bug when trying to get a user by username #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gbrasier
Copy link

@gbrasier gbrasier commented Feb 2, 2019

I changed a logic check in the GetUser() command.

The request for getting a user by username would fail because DNN-Powershell would add --id 0 even if no id was provided. This was because an int can't be null and would default to 0. As a result, the null check would always be false and add --id 0 to the request. DNN would then default to try and look up a user by userId and not by username, and since the userId would be 0, the request would fail.

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.

1 participant