Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Change Password never persists because of lack of setters? #369

@jenshuehn

Description

@jenshuehn

Hey.
Recently, I faced a strange issue and I am not sure where this came from:

Based on the sample app, my application did not persist the password set using User::changePassword. In the end I removed the public field access with a setter method and then it worked.

Old code in User::changePassword which did not work:
a.providerUserId = authUser.getHashedPassword();
New code:
a.setProviderUserId(authUser.getHashedPassword());

Version used: Play 2.6.21.

All the best.
Jens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions