This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new e7ef21a7 [Improve] invalid token logic only frontend has client id
(#467)
e7ef21a7 is described below
commit e7ef21a7263d1b29821b7bc728f3d856feeaa4e8
Author: VampireAchao <[email protected]>
AuthorDate: Thu Aug 1 17:39:12 2024 +0800
[Improve] invalid token logic only frontend has client id (#467)
---
src/routes/User/Login.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js
index e751d938..12e2da99 100644
--- a/src/routes/User/Login.js
+++ b/src/routes/User/Login.js
@@ -19,6 +19,7 @@ import React, { Component } from "react";
import CryptoJS from "crypto-js";
import { connect } from "dva";
import { Alert } from "antd";
+import UUID from "uuid";
import Login from "components/Login";
import styles from "./Login.less";
import { querySecretInfo } from "../../services/api";
@@ -97,6 +98,7 @@ export default class LoginPage extends Component {
type: "login/login",
payload: {
...values,
+ clientId: UUID.v4().replaceAll("-", ""),
callback: (res) => {
if (res.code === 500) {
this.setState({ needCode: true });