View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0028002 | mantisbt | code cleanup | public | 2021-03-05 18:35 | 2021-03-07 18:28 | 
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | N/A | 
| Status | closed | Resolution | fixed | ||
| Target Version | 2.25.0 | Fixed in Version | 2.25.0 | ||
| Summary | 0028002: New API function to get User Id by cookie string | ||||
| Description | Authentication API executes SQL queries against user table to retrieve user information based on the cookie string. To avoid code duplication, this should be extracted into a User API function.  | ||||
| Tags | No tags attached. | ||||
| 
	
	 MantisBT: master 65ebd29f 2021-03-05 13:44 Details Diff  | 
New API function to get User Id by cookie string By calling user_get_id_by_cookie(), we avoid code duplication in authentication API, replacing 4 specific SQL statements against the user table. Fixes 0028002  | 
Affected Issues 0028002  | 
|
| mod - core/authentication_api.php | Diff File | ||
| mod - core/user_api.php | Diff File | ||