-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
User password change leads to logout of all other users #17166
Comments
Another report here: #17035 |
I can confirm this issue.
After a password change all temporary tokens except the current one are deleted. Not sure why this popups now because the code is there for a long time.
Adding the uid to the query deletes the tokens only for the current user. cc @rullzer 🤷♂️ 😕 |
Many thanks to @kesselb for your fast response! That solves our problem which was really tricky to isolate and was a real pain in the ass... 🙏 |
I can confirm that we have suffered from the same Issue. Applying the Patch fixed it for us aswell. Server configuration detailOperating system: Linux 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Webserver: httpd.x86_64 2.4.6-90.el7.centos base Database: mariadb-server.x86_64 1:5.5.64-1.el7 base PHP version: Nextcloud version: 16.0.3 Updated from an older Nextcloud/ownCloud or fresh install: fresh install Where did you install Nextcloud from: nextcloud 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 |
Steps to reproduce
Has been tested and reproduced on different NC instances (15.0.11, 16.0.4).
SQL query that may cause the problem:
DELETE FROM oc_authtoken WHERE (type = '0') AND (id <> '2') AND (version = 2)
Expected behaviour
All users stay logged in, when one user changes his password.
Actual behaviour
When one user changes his password all other users lose their sessions and are logged out.
Server configuration detail
Operating system: Linux 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64
Webserver: Apache/2.4.29 (Ubuntu) (apache2handler)
Database: mysql 10.3.18
PHP version:
7.2.19-0ubuntu0.18.04.2
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 16.0.4 - 16.0.4.1
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: nextcloud
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: No
Are you using encryption:
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Operating system: macOS 10.14.6
The text was updated successfully, but these errors were encountered: