diff --git a/Dockerfile b/Dockerfile index 6687edd86..7abb1699f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apk --update add --no-cache --virtual \ COPY dist/server /usr/src/server COPY dist/shared /usr/src/shared -EXPOSE 8080 +EXPOSE 9091 VOLUME /etc/authelia VOLUME /var/lib/authelia diff --git a/client/src/components/AlreadyAuthenticated/AlreadyAuthenticated.tsx b/client/src/components/AlreadyAuthenticated/AlreadyAuthenticated.tsx index 6c64513b6..054095ef0 100644 --- a/client/src/components/AlreadyAuthenticated/AlreadyAuthenticated.tsx +++ b/client/src/components/AlreadyAuthenticated/AlreadyAuthenticated.tsx @@ -1,4 +1,5 @@ import React, { Component } from "react"; +import classnames from 'classnames'; import styles from '../../assets/scss/components/AlreadyAuthenticated/AlreadyAuthenticated.module.scss'; import Button from "@material/react-button"; @@ -17,7 +18,7 @@ export type Props = OwnProps & DispatchProps; class AlreadyAuthenticated extends Component { render() { return ( -
+
{this.props.username} diff --git a/client/src/components/FirstFactorForm/FirstFactorForm.tsx b/client/src/components/FirstFactorForm/FirstFactorForm.tsx index 6082c0173..b07ff8fbe 100644 --- a/client/src/components/FirstFactorForm/FirstFactorForm.tsx +++ b/client/src/components/FirstFactorForm/FirstFactorForm.tsx @@ -65,7 +65,7 @@ class FirstFactorForm extends Component { render() { return ( -
+
@@ -103,8 +103,9 @@ class FirstFactorForm extends Component {
diff --git a/client/src/components/Notification/Notification.tsx b/client/src/components/Notification/Notification.tsx index d5d0d1738..46cd27e9c 100644 --- a/client/src/components/Notification/Notification.tsx +++ b/client/src/components/Notification/Notification.tsx @@ -11,7 +11,7 @@ interface Props { class Notification extends Component { render() { return (this.props.show) - ? (
+ ? (
{this.props.children}
) : null; diff --git a/client/src/components/SecondFactorForm/SecondFactorForm.tsx b/client/src/components/SecondFactorForm/SecondFactorForm.tsx index f754966bb..2af9585ae 100644 --- a/client/src/components/SecondFactorForm/SecondFactorForm.tsx +++ b/client/src/components/SecondFactorForm/SecondFactorForm.tsx @@ -1,4 +1,5 @@ -import React, { Component, KeyboardEvent, ChangeEvent, FormEvent } from 'react'; +import React, { Component, KeyboardEvent, FormEvent } from 'react'; +import classnames from 'classnames'; import TextField, { Input } from '@material/react-text-field'; import Button from '@material/react-button'; @@ -63,7 +64,7 @@ class SecondFactorView extends Component {
- Register device @@ -89,7 +90,7 @@ class SecondFactorView extends Component { private renderTotp(n: number) { return ( -
+
Option {n} - One-Time Password
{this.props.oneTimePasswordVerificationError} @@ -99,14 +100,14 @@ class SecondFactorView extends Component { label="One-Time Password" outlined={true}>
- Register device @@ -115,6 +116,7 @@ class SecondFactorView extends Component { diff --git a/client/src/views/OneTimePasswordRegistrationView/OneTimePasswordRegistrationView.tsx b/client/src/views/OneTimePasswordRegistrationView/OneTimePasswordRegistrationView.tsx index 2f7437021..a3411f52c 100644 --- a/client/src/views/OneTimePasswordRegistrationView/OneTimePasswordRegistrationView.tsx +++ b/client/src/views/OneTimePasswordRegistrationView/OneTimePasswordRegistrationView.tsx @@ -1,4 +1,5 @@ import React, { Component } from "react"; +import classnames from 'classnames'; import Button from "@material/react-button"; @@ -54,10 +55,10 @@ class OneTimePasswordRegistrationView extends Component { Register your device by scanning the barcode or adding the key.
-
+
-
{secret.base32_secret}
+
{secret.base32_secret}