fenya123 / forum123

Flask application written for educational purposes.
http://193.124.115.171/
1 stars 1 forks source link

122: Fix mismerged code for authorized_access decorator #123

Closed birthdaysgift closed 1 year ago

birthdaysgift commented 1 year ago

While working on adding REST endpoint for creating a new topic (#116), we have merged some functionality unintentionally and we need to fix these two things:

  1. Remove unused provide_user=True argument from @authorized_access decorator for PostsList.get() route.
  2. Use .partition() instead of .split() in parse_token_data. This was changed by accident during separating out token parsing logic.

So in the scope of this ticket we need to apply somefixes caused by careless merging.