Add DeviceId to the 2FA email request and set it when calling the endpoint of resending the 2FA email to see if the 2FA email is because of a new device login.
angular/src/components/two-factor.component.ts: Set deviceIdentifier to the TwoFactorEmailRequest to check then if it's a 2FA email of a new device login.
Testing requirements
On the clients' verification code screen, test that resending code works as expected on new devices login as well as on already known devices, i.e. the email arrives with the code.
Before you submit
[X] I have checked for linting errors (npm run lint) (required)
[ ] I have added unit tests where it makes sense to do so (encouraged but not required)
[ ] This change requires a documentation update (notify the documentation team)
[ ] This change has particular deployment requirements (notify the DevOps team)
Type of change
Objective
Add
DeviceId
to the 2FA email request and set it when calling the endpoint of resending the 2FA email to see if the 2FA email is because of a new device login.Relates to: Server change
Clients updates:
Code changes
deviceIdentifier
deviceIdentifier
to theTwoFactorEmailRequest
to check then if it's a 2FA email of a new device login.Testing requirements
On the clients' verification code screen, test that resending code works as expected on new devices login as well as on already known devices, i.e. the email arrives with the code.
Before you submit
npm run lint
) (required)