Replies: 2 comments 2 replies
-
<script>
HFS.watchState('username', u => {
if (!u) location = '/'
})
</script> read it like "if username changes, and it's NOW empty, then redirect". If I understand that this mechanism is interesting for many people, I can turn this into a plugin, or even an option of the program itself. The only downside of this solution, is that using location to move around will cause the page to fully reload. Most people will not even care, but in next version I will include an alternative method to do it even better. |
Beta Was this translation helpful? Give feedback.
-
if and where to go on logout is a bit arbitrary, so, if anything, i would let the administrator decide. |
Beta Was this translation helpful? Give feedback.
-
Hi Rejetto,
I was playing a little bit with the account possebilities. I created an account for myself where I can do everything. I requires a login.
So if I click on my folder link than I am prompted for my login credentials. So I login and I am returning in the root folder of my fileserver. I would expect to see the contents of my personal folder (named 'henk' in this case) instead of the root folder of the fileserver, because I clicked on the 'henk' folder.
I am in the 'Henk' folder. If I logout I get the login popup again. I would expect to return to the root of the fileserver instead.
Kind regards,
Henk - fileserver.ph5hp.nl
Beta Was this translation helpful? Give feedback.
All reactions