Kaynağa Gözat

fix(core): UserService.addNativeAuthenticationMethod persists userId

Closes #1423
Michael Bromley 3 yıl önce
ebeveyn
işleme
ae1e24d940

+ 1 - 0
packages/core/src/service/services/user.service.ts

@@ -119,6 +119,7 @@ export class UserService {
             authenticationMethod.passwordHash = '';
         }
         authenticationMethod.identifier = identifier;
+        authenticationMethod.user = user;
         await this.connection.getRepository(ctx, NativeAuthenticationMethod).save(authenticationMethod);
         user.authenticationMethods = [...(user.authenticationMethods ?? []), authenticationMethod];
         return user;