diff --git a/dictation_server/src/features/users/users.service.ts b/dictation_server/src/features/users/users.service.ts index 7baefa7..d56e0e8 100644 --- a/dictation_server/src/features/users/users.service.ts +++ b/dictation_server/src/features/users/users.service.ts @@ -229,13 +229,12 @@ export class UsersService { // ユーザー情報からAzure AD B2CのIDを特定する const user = await this.usersRepository.findUserById(userId); const extarnalId = user.external_id; - // ユーザを認証済みにする - await this.usersRepository.updateUserVerified(userId); // パスワードを変更する await this.adB2cService.changePassword(extarnalId, ramdomPassword); + // ユーザを認証済みにする + await this.usersRepository.updateUserVerified(userId); // メールの送信元を取得 const from = this.configService.get('MAIL_FROM') ?? ''; - // XXX ODMS側が正式にメッセージを決めるまで仮のメール内容とする const subject = 'A temporary password has been issued.'; const text = 'temporary password: ' + ramdomPassword;