lost token in user->save

Created on 11 June 2018, over 6 years ago
Updated 2 August 2024, 5 months ago

Hi, in my rest api Controller I need to change some user infos and save these changes. I can do it, but when I save the new user info I lost my current access_token ,so my user is no more logged into the system. Why this ? is possibile to disable this ? Thanks.

💬 Support request
Status

Closed: duplicate

Version

3.8

Component

Miscellaneous

Created by

🇮🇹Italy ziobudda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands Sander Edwards van Muijen Leeuwarden

    Hi all,

    found this issue while searching for a solution for the exact same issue.

    I'm using the simple_oauth module to connect to a mobile app. In this app, there's a tab where the user can change some custom fields in his user profile, but every time the user saves his profile, the tokens are revoked.

    I agree with @tri-tran that the tokens don't need to be revoked when any other data is saved, only when credentials or user status changes.

    Can you please review the patch?

    Thanks in advance!

  • 🇳🇱Netherlands Sander Edwards van Muijen Leeuwarden

    created new patch because the old one had incorrect line numbers due to added functionalities in the same file.

  • Status changed to Closed: duplicate 5 months ago
  • 🇳🇱Netherlands bojan_dev

    This will be resolved in 📌 Auth revoke on profile update Needs review

Production build 0.71.5 2024