-
Notifications
You must be signed in to change notification settings - Fork 15
Issue #15 fix: User update (patch) is not working for resource app=users&resource=user
#16
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
Conversation
…rce `com_api&app=users&resource=user`
# Conflicts: # src/users/user.php
com_api&app=users&resource=userapp=users&resource=user
| { | ||
| if ($fidentifier) | ||
| // Forced user creation | ||
| if ($fIdentifier) |
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.
Combine this with the else above into an elseif condition ?
|
|
||
| // Get current logged in user. | ||
| $my = JFactory::getUser(); | ||
| $me = JFactory::getUser(); |
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.
The user object is already available in $this->plugin->get('user') can you confirm it is ok to use either ?
| { | ||
| if ($formData['password'] == '') | ||
| // Validate required fields | ||
| if ($formData['username'] == '' || $formData['name'] == '' || $formData['email'] == '' || $formData['password'] == '') |
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.
We can create user without passing the password in joomla.
@manojLondhe
| // Forced user creation | ||
| if ($fIdentifier) | ||
| { | ||
| $user = new JUser; |
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.
If id is provided, and is exist then user should get updated
@manojLondhe @coolbung
|
closing in favor of #17 |
com_api&app=users&resource=user#15 fix: User update (patch) is not working for resourceapp=users&resource=user