MCPcopy Create free account
hub / github.com/bugy/script-server / checkRedirectReason

Function checkRedirectReason

web-src/src/login/login.js:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26window.onload = onLoad;
27
28function checkRedirectReason() {
29 let redirectReason = getQueryParameter('redirectReason');
30 if (redirectReason === 'prohibited') {
31 return 'Access if prohibited for this user'
32 }
33
34 return redirectReason;
35}
36
37function onLoad() {
38 axiosInstance.get('auth/config').then(({data: config}) => {

Callers 1

onLoadFunction · 0.85

Calls 1

getQueryParameterFunction · 0.90

Tested by

no test coverage detected