This commit is contained in:
Lakhan Samani 2022-08-31 11:02:50 +05:30
commit 75a413e5f2
2 changed files with 252 additions and 249 deletions

View File

@ -29,6 +29,7 @@ import {
MenuItem,
useToast,
Spinner,
TableContainer
} from '@chakra-ui/react';
import {
FaAngleLeft,
@ -262,8 +263,7 @@ export default function Users() {
.toPromise();
if (res.data?._update_user?.id) {
toast({
title: `Multi factor authentication ${
user.is_multi_factor_auth_enabled ? 'disabled' : 'enabled'
title: `Multi factor authentication ${user.is_multi_factor_auth_enabled ? 'disabled' : 'enabled'
} for user`,
isClosable: true,
status: 'success',
@ -293,6 +293,7 @@ export default function Users() {
</Flex>
{!loading ? (
userList.length > 0 ? (
<TableContainer>
<Table variant="simple">
<Thead>
<Tr>
@ -547,6 +548,7 @@ export default function Users() {
</TableCaption>
)}
</Table>
</TableContainer>
) : (
<Flex
flexDirection="column"

View File

@ -109,6 +109,7 @@ func main() {
router := routes.InitRouter(log)
log.Info("Starting Authorizer: ", VERSION)
port, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyPort)
log.Info("Authorizer running at PORT: ", port)
if err != nil {
log.Info("Error while getting port from env using default port 8080: ", err)
port = "8080"