浏览代码

Merge branch 'remove-ldap'

master
Jason Chuang 1 个月前
父节点
当前提交
40c245f532
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -1
      src/auth/index.js
  2. +0
    -1
      src/auth/jwt/jwtService.js

+ 1
- 1
src/auth/index.js 查看文件

@@ -22,7 +22,7 @@ let expiredAlertShownInMemory = false;


/** Login / public auth endpoints must not trigger token refresh or session-expiry reload. */ /** Login / public auth endpoints must not trigger token refresh or session-expiry reload. */
const isPublicAuthRequest = (reqUrl) => const isPublicAuthRequest = (reqUrl) =>
reqUrl.includes('/login') || reqUrl.includes('/ldap-login');
reqUrl.includes('/login');


/** Clear stale session-expiry flag so a new login attempt can show its own error dialog. */ /** Clear stale session-expiry flag so a new login attempt can show its own error dialog. */
export const clearExpiredSessionAlert = () => { export const clearExpiredSessionAlert = () => {


+ 0
- 1
src/auth/jwt/jwtService.js 查看文件

@@ -46,7 +46,6 @@ export default class JwtService {
if (response && response.status === 401) { if (response && response.status === 401) {
const isPublicAuthRequest = const isPublicAuthRequest =
reqUrl.includes('/login') || reqUrl.includes('/login') ||
reqUrl.includes('/ldap-login') ||
reqUrl.includes('/refresh-token') reqUrl.includes('/refresh-token')
if (isPublicAuthRequest) { if (isPublicAuthRequest) {
return Promise.reject(error) return Promise.reject(error)


正在加载...
取消
保存