Closed eikhr closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.13%. Comparing base (
4b7b6f9
) to head (ca27236
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hmm, yeah that should work. Good idea!
The reason GSuite sync only works after changing password, is that the password hash used for external sync was not set correctly when creating users. The logic for setting this hash is implemented in the
set_password()
method which is not called when creating a new user.I wasn't able to add any logic with access to the new password in the
PasswordHashUser
-model, so I just added a call toset_password
right after creating new user.resolves ABA-578
Although this will fix the problem for new users, there is still probably a lot of users that have never changed their password and thus do not have the saved hash. It might be worth adding some warning whenever we try to sync a user with a missing hash.