fix: bypass auth redirect cookie when set to homepage
This commit is contained in:
1 parent
0fa5b9750d
commit
fe890979af
2 files changed
+12
-3
No files matched your search
@@ -644,7 +644,10 @@ export default {
|
||||
Cookies.set('jwt', respObj.jwt, { expires: 365 })
|
||||
_.delay(() => {
|
||||
const loginRedirect = Cookies.get('loginRedirect')
|
||||
if (loginRedirect) {
|
||||
if (loginRedirect === '/' && respObj.redirect) {
|
||||
Cookies.remove('loginRedirect')
|
||||
window.location.replace(respObj.redirect)
|
||||
} else if (loginRedirect) {
|
||||
Cookies.remove('loginRedirect')
|
||||
window.location.replace(loginRedirect)
|
||||
} else if (respObj.redirect) {
|
||||
|
||||
Reference in new issue
Block a user