mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve login failure handling.
This commit is contained in:
@ -134,7 +134,7 @@ class App extends Component {
|
||||
|
||||
Setting.showMessage("success", `Successfully logged out, redirected to homepage`);
|
||||
|
||||
Setting.goToLink("/");
|
||||
Setting.goToLinkSoft(this, "/");
|
||||
} else {
|
||||
Setting.showMessage("error", `Failed to log out: ${res.msg}`);
|
||||
}
|
||||
@ -292,7 +292,11 @@ class App extends Component {
|
||||
<div>
|
||||
<Header style={{ padding: '0', marginBottom: '3px'}}>
|
||||
{
|
||||
Setting.isMobile() ? null : <a className="logo" href={"/"} />
|
||||
Setting.isMobile() ? null : (
|
||||
<Link to={"/"}>
|
||||
<div className="logo" />
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
<Menu
|
||||
// theme="dark"
|
||||
|
Reference in New Issue
Block a user