Skip to content

Commit

Permalink
Merge pull request #4560 from JeethJJ/master
Browse files Browse the repository at this point in the history
Make Backup Codes enabled by default
  • Loading branch information
JayaShakthi97 authored Nov 13, 2023
2 parents 2c5b3c2 + 7cff1f6 commit df0ec73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-geese-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/myaccount": patch
---

Make Backup Codes enabled by default
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -662,7 +662,7 @@ export const BackupCodeAuthenticator : FunctionComponent<BackupCodeProps> = (
size="small"
color="grey"
name="add"
disabled={ isLoading || (!isMFAConfigured && isSuperTenantLogin) }
disabled={ isLoading }
data-testid={ `${componentid}-init-button` }
/>)
}
Expand All @@ -673,21 +673,6 @@ export const BackupCodeAuthenticator : FunctionComponent<BackupCodeProps> = (
</List.Content>
</Grid.Column>
</Grid.Row>
{ !isMFAConfigured && isSuperTenantLogin ? (
<Grid.Row columns={ 1 }>
<Grid.Column width={ 1 } className="first-column" verticalAlign="middle">
</Grid.Column>
<Grid.Column width={ 12 } className="first-column" verticalAlign="middle">
<Message className="display-flex" size="tiny" info>
<Icon name="info" color="teal" corner />
<Message.Content className="tiny">
{ t(translateKey + "messages.disabledMessage") }
</Message.Content>
</Message>
</Grid.Column>
</Grid.Row>) :
null
}
</Grid>
</>
);
Expand Down

0 comments on commit df0ec73

Please sign in to comment.