View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0026632 | mantisbt | api rest | public | 2020-01-28 07:25 | 2020-05-02 11:51 | 
| Reporter | gthomas | Assigned To | community | ||
| Priority | normal | Severity | feature | Reproducibility | have not tried | 
| Status | closed | Resolution | fixed | ||
| Target Version | 2.24.0 | Fixed in Version | 2.24.0 | ||
| Summary | 0026632: Support user password reset via REST API | ||||
| Description | |||||
| Tags | No tags attached. | ||||
| related to | 0026880 | closed | dregad | Impossible to reset user's password | 
| related to | 0026881 | closed | vboctor | Documentation for REST API /users/{id}/reset missing | 
| related to | 0026884 | closed | dregad | Misleading e-mail notification following password reset by admin | 
| related to | 0026885 | closed | dregad | Resetting password for protected user via REST API should fail | 
| related to | 0026929 | assigned | dregad | Support user account unlock via REST API | 
| MantisBT: master cbded1e5 2020-02-02 05:52 Committer: GitHub Details Diff | Support user password reset via REST API * add UserResetPasswordCommand as PUT /api/rest/users/:id/reset * use UserResetPasswordCommand in manage_user_reset.php Fixes 0026632 | Affected Issues 0026632 | |
| mod - api/rest/restcore/users_rest.php | Diff File | ||
| mod - api/rest/swagger.json | Diff File | ||
| add - core/commands/UserResetPasswordCommand.php | Diff File | ||
| mod - manage_user_reset.php | Diff File | ||
| MantisBT: master-2.24 2c237c4e 2020-04-15 07:59 Details Diff | UserResetPasswordCommand now returns status code The introduction of the command (see issue 0026632) broke the password reset from the GUI (manage_user_reset.php), as some variables used in the program were no longer initialized. As a result, it could only unlock the account (i.e. reset the failed login count). This commit changes the Command's process() method to return a status code (RESET, UNLOCK or FAILURE, defined as class constants), which can then be used by manage_user_reset.php to display an appropriate message. Fixes 0026880 | Affected Issues 0026632, 0026880 | |
| mod - core/commands/UserResetPasswordCommand.php | Diff File | ||
| mod - manage_user_reset.php | Diff File | ||
| MantisBT: master-2.24 0d5a7397 2020-05-02 07:48 Details Diff | UserResetPassword Command fixes Merge PR https://github.com/mantisbt/mantisbt/pull/1655 Fixes 0026880, 0026885 See issue 0026632 | Affected Issues 0026632, 0026880, 0026885 | |
| mod - api/rest/restcore/users_rest.php | Diff File | ||
| mod - core/commands/UserResetPasswordCommand.php | Diff File | ||
| mod - core/user_api.php | Diff File | ||
| mod - manage_user_reset.php | Diff File | ||
