Merged PR 109: confirmUserAndInitPasswordのtry分の中身の順序を入れ替える。
## 概要 [Task1755: confirmUserAndInitPasswordのtry分の中身の順序を入れ替える。](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1755) - 元PBI or タスクへのリンク(内容・目的などはそちらにあるはず) - 何をどう変更したか、追加したライブラリなど - このPull Requestでの対象/対象外 - 影響範囲(他の機能にも影響があるか) ## レビューポイント - 特にレビューしてほしい箇所 - 軽微なものや自明なものは記載不要 - 修正範囲が大きい場合などに記載 - 全体的にや仕様を満たしているか等は本当に必要な時のみ記載 ## UIの変更 - Before/Afterのスクショなど - スクショ置き場 ## 動作確認状況 - ローカルで確認、develop環境で確認など ## 補足 - 相談、参考資料などがあれば
This commit is contained in:
parent
a891d7fb64
commit
b07ede7f1b
@ -229,13 +229,12 @@ export class UsersService {
|
|||||||
// ユーザー情報からAzure AD B2CのIDを特定する
|
// ユーザー情報からAzure AD B2CのIDを特定する
|
||||||
const user = await this.usersRepository.findUserById(userId);
|
const user = await this.usersRepository.findUserById(userId);
|
||||||
const extarnalId = user.external_id;
|
const extarnalId = user.external_id;
|
||||||
// ユーザを認証済みにする
|
|
||||||
await this.usersRepository.updateUserVerified(userId);
|
|
||||||
// パスワードを変更する
|
// パスワードを変更する
|
||||||
await this.adB2cService.changePassword(extarnalId, ramdomPassword);
|
await this.adB2cService.changePassword(extarnalId, ramdomPassword);
|
||||||
|
// ユーザを認証済みにする
|
||||||
|
await this.usersRepository.updateUserVerified(userId);
|
||||||
// メールの送信元を取得
|
// メールの送信元を取得
|
||||||
const from = this.configService.get<string>('MAIL_FROM') ?? '';
|
const from = this.configService.get<string>('MAIL_FROM') ?? '';
|
||||||
|
|
||||||
// XXX ODMS側が正式にメッセージを決めるまで仮のメール内容とする
|
// XXX ODMS側が正式にメッセージを決めるまで仮のメール内容とする
|
||||||
const subject = 'A temporary password has been issued.';
|
const subject = 'A temporary password has been issued.';
|
||||||
const text = 'temporary password: ' + ramdomPassword;
|
const text = 'temporary password: ' + ramdomPassword;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user