-
{systemName}
+
+ {systemName}
{renderButtons(false)}
+ changeLanguage(value)}
+ style={{
+ fontSize: '15px',
+ fontWeight: '400',
+ color: '#666',
+ }}
+ />
{userState.user ? (
- Log out
+
+ {t('header.logout')}
+
) : (
)}
diff --git a/web/default/src/components/LoginForm.js b/web/default/src/components/LoginForm.js
index 68a19581..f6bd6733 100644
--- a/web/default/src/components/LoginForm.js
+++ b/web/default/src/components/LoginForm.js
@@ -1,5 +1,16 @@
import React, { useContext, useEffect, useState } from 'react';
-import { Button, Divider, Form, Grid, Header, Image, Message, Modal, Segment } from 'semantic-ui-react';
+import {
+ Button,
+ Divider,
+ Form,
+ Grid,
+ Header,
+ Image,
+ Message,
+ Modal,
+ Segment,
+ Card,
+} from 'semantic-ui-react';
import { Link, useNavigate, useSearchParams } from 'react-router-dom';
import { UserContext } from '../context/User';
import { API, getLogo, showError, showSuccess, showWarning } from '../helpers';
@@ -10,7 +21,7 @@ const LoginForm = () => {
const [inputs, setInputs] = useState({
username: '',
password: '',
- wechat_verification_code: ''
+ wechat_verification_code: '',
});
const [searchParams, setSearchParams] = useSearchParams();
const [submitted, setSubmitted] = useState(false);
@@ -63,7 +74,7 @@ const LoginForm = () => {
if (username && password) {
const res = await API.post(`/api/user/login`, {
username,
- password
+ password,
});
const { success, message, data } = res.data;
if (success) {
@@ -86,95 +97,149 @@ const LoginForm = () => {
return (
-
-
-
- Forget password?
-
- Click to reset
-
- ; No account?
-
- Click to register
-
-
- {status.github_oauth || status.wechat_login || status.lark_client_id ? (
- <>
- Or
-
- {status.github_oauth ? (
-