Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Vue: Redirect to login form on PHP session expiration - refs BT#21825 #5621

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

@christianbeeznest christianbeeznest merged commit 5d597b9 into chamilo:master Jun 30, 2024
4 of 7 checks passed
router.beforeEach(async (to, from, next) => {
if (to.matched.some(record => record.meta.requiresAuth)) {
try {
const response = await securityService.checkSession()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Con una instalación limpia, se hacen 2 llamadas a /check-session por página
Y después del login, se sigue viendo el form por un momento.

if (to.matched.some(record => record.meta.requiresAuth)) {
try {
const response = await securityService.checkSession()
const isAuthenticated = response.isAuthenticated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se tendría que actualizar también securityStore.isAuthenticated para mantener el estado en el store. Puede que eso sea el problema del login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants