[TokenLogin] Tokens remains visible on personal page in case of Admin changes user´s password
Steps to reproduce
- Login as user A and generate a couple of tokens
- Log out and Login again but this time as Admin user
- Change user A password as admin
- Log out and login again as User A with new password
- Navigate to personal page and refresh 10 minutes after to be sure that tokens have been validated again by background process.
Expected behaviour
Tokens disappear from Personal page due to password changed
Actual behaviour
Token remains at personal page but they are useless.
Server configuration
Operating system: Ubuntu 14.04.1 LTS Web server: Apache2 Database: Server version: 5.5.46-0ubuntu0.14.04.2 (Ubuntu) PHP version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46 ownCloud version: (see ownCloud admin page) ownCloud 9.1.0 beta 2 (git)
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Chrome 51 Operating system: OSX El capitán 10.11.5
@ChristophWurst
Navigate to personal page and refresh 10 minutes after to be sure that tokens have been validated again by background process.
That's not how we re-validate tokens. They are validated only if used, as the password can only be decrypted if one knows the device password (it is hashed when stored in the db).
One possible solution would be to delete all tokens immediately if a user's password is changed.
@ChristophWurst so current behaviour should be for active connections through token , every 5 minutes are checked with current password to detect invalid tokens. So in case we have changed password (does not matter as admin or user), just tokens associated to active sessions will be invalidated ¿?
yes. They get (in)validated when used
are the tokens staying forever or do they disappear after 10 minutes anyway ?
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.
please reopen if still happening on 10.0.4
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.