Closed marc-farre closed 4 months ago
I'm not sure just adding this would help fix the issue as I'm seeing authByUserAndPassword()
mentions only the $username
and $password
and makes no checks for mustChangePassword()
.
// Check if password change is required
if ($user->mustChangePassword()) {
return $this->returnError(401, 'Password change required');
}
@gevorgmansuryan Can you please take a look into this?
@luke- yeah, there is a bug related with impersonated user in rest. But steps described in @marc-farre 's comment isn't related with impersonate, bearer tokens created from "Bearer Auth" tab are just like regular login, and should work like regular login.
I'll fix it for /auth/impersonate
only.
https://marketplace.humhub.com/module/rest/docs/html/auth.html#tag/User/paths/~1auth~1impersonate/get
Steps to reproduce:
Returns
null
instead of the post.Original discussion: https://community.humhub.com/content/perma?id=277066