Unverified Commit de0f22c1 authored by Féry Mathieu (Mathius)'s avatar Féry Mathieu (Mathius)
Browse files

feat(user-oauth): Update id generation for prevent strange id

parent 9e3fb39b
Pipeline #34331 passed with stages
in 7 minutes and 42 seconds
......@@ -54,8 +54,8 @@ public class UserOAuth implements WithAncestor<User> {
* @param userIdOfProvider String represent id of user in this provider
public UserOAuth(@NonNull User userRelated, @NonNull String providerNameRelated, @NonNull String userIdOfProvider) {
this(String.format("%s-%s", userRelated.getId(), providerNameRelated), userRelated, providerNameRelated,
this(userRelated.getId() != null ? String.format("%s-%s", userRelated.getId(), providerNameRelated) : null,
userRelated, providerNameRelated, userIdOfProvider);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment