Skip to content

Update user.js#2

Open
amdacccache wants to merge 1 commit intoZiqing19:masterfrom
amdacccache:patch-2
Open

Update user.js#2
amdacccache wants to merge 1 commit intoZiqing19:masterfrom
amdacccache:patch-2

Conversation

@amdacccache
Copy link

log out issues

log out issues
@Ziqing19
Copy link
Owner

The authentication router is the one that visitor can also access. The other two are user-only, and will send 403 if a visitor try to access them (please check the checkLogStatus() function).
The /user/logout router just destorys the user session in the server and let client do the redirect. And of course a visitor cannot log out. That is why this router is in user.js.

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