Skip to content

Calling User.save() removes all current access tokens even not change user email or password. #3124

Closed

Description

@iicy90

#3021
in common/models/user.js:

var isFullReplaceChangingPassword = !!ctx.instance;
// ...
ctx.hookState.isPasswordChange = isPartialUpdateChangingPassword || 
  isFullReplaceChangingPassword;`

ctx.instance always true when you do User.save()

Activity

  1. davidcheung commented on Jan 26, 2017

    @davidcheung
    Contributor

    @icy90 I see. Please open a new github issue for this problem, so that we can move the discussion there, and mention my handle there so that I get email notification.

    @bajtos

  2. self-assigned this
    on Jan 30, 2017
  3. bajtos commented on Feb 6, 2017

    @bajtos
    Member

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions