View Issue Details

IDProjectCategoryView StatusLast Update
0028002mantisbtcode cleanuppublic2021-03-07 18:28
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version2.25.0Fixed in Version2.25.0 
Summary0028002: 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.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 65ebd29f

2021-03-05 13:44

dregad


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