Skip to content

Commit

Permalink
Merge pull request #3 from Authress/wparad/device-name-registration
Browse files Browse the repository at this point in the history
Add device name in registration.
  • Loading branch information
wparad authored Dec 14, 2023
2 parents d4162fc + 4b8f567 commit 1268a5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/mfaDevices/mfaDevices.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ export default class MfaDevices extends LitElement {
}

registerDevice() {
const deviceNameElement = this.shadowRoot.getElementById('deviceName');
const deviceName = deviceNameElement && deviceNameElement.value;

this.state = states.LOADING;
this.requestUpdate();

setTimeout(async () => {
const deviceNameElement = this.shadowRoot.getElementById('deviceName');
const deviceName = deviceNameElement && deviceNameElement.value;
logger.log('Registering new device', deviceName);
try {
const result = await loginClient.registerDevice({ name: deviceName });
Expand Down

0 comments on commit 1268a5d

Please sign in to comment.