owncloud / moodle-repository_ocis

GNU General Public License v3.0
3 stars 0 forks source link

logout user automatically, when manual logout is impossible #83

Closed individual-it closed 7 months ago

individual-it commented 7 months ago

There are cases when the user cannot recover herself and is stuck with an unusable file-picker. This always happens when these things happen together:

  1. moodle has already a valid token (after login to ocis)
  2. something happens to the ocis server. e.g. user gets disabled, server is shutdown, user is deleted, user cannot access the drives list for some other reason
  3. user opens the file picker

see also #80

This PR deletes the token for those cases.

PhMemmel commented 7 months ago

Just tested the PR successfully: I could "free" a user being stuck in a session like reported in #80. The user will see the error message from the exception. After closing it he will see the login button again and can try to re-login. Thanks!

I could not test the other cases yet.

S-Panta commented 7 months ago

I've tested this PR and the problem was fixed by this.