mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Fix demo mode default login
This commit is contained in:
parent
edbd3d4018
commit
4806e76cf6
@ -688,6 +688,11 @@ class App extends Component {
|
||||
return null;
|
||||
}
|
||||
|
||||
const language = Setting.getLanguage();
|
||||
if (language === "en" || language === "zh") {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Alert type="info" banner showIcon={false} closable message={
|
||||
<div style={{textAlign: "center"}}>
|
||||
|
@ -16,6 +16,7 @@ import React from "react";
|
||||
import {Button, Checkbox, Col, Form, Input, Result, Row, Spin, Tabs} from "antd";
|
||||
import {LockOutlined, UserOutlined} from "@ant-design/icons";
|
||||
import * as UserWebauthnBackend from "../backend/UserWebauthnBackend";
|
||||
import * as Conf from "../Conf";
|
||||
import * as AuthBackend from "./AuthBackend";
|
||||
import * as OrganizationBackend from "../backend/OrganizationBackend";
|
||||
import * as ApplicationBackend from "../backend/ApplicationBackend";
|
||||
@ -384,6 +385,8 @@ class LoginPage extends React.Component {
|
||||
organization: application.organization,
|
||||
application: application.name,
|
||||
autoSignin: true,
|
||||
username: Conf.ShowGithubCorner ? "admin" : "",
|
||||
password: Conf.ShowGithubCorner ? "123" : "",
|
||||
}}
|
||||
onFinish={(values) => {
|
||||
this.onFinish(values);
|
||||
|
Loading…
x
Reference in New Issue
Block a user