]> source.dussan.org Git - nextcloud-server.git/commit
Fix app password updating out of bounds 22524/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 31 Aug 2020 17:45:40 +0000 (19:45 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 3 Sep 2020 19:13:36 +0000 (21:13 +0200)
commit0452877a67d7679b427e54463c8d7f704d11aa6b
tree4b191331838535ffa996e214413a0a4f47795bde
parent5826b75c4025529805135595da46d63c7d46560f
Fix app password updating out of bounds

When your password changes out of bounds your Nextcloud tokens will
become invalid. There is no real way around that. However we should make
sure that if you successfully log in again your passwords are all
updates

* Added event listener to the PostLoggedInEvent so that we can act on it
  - Only if it is not a token login
* Make sure that we actually reset the invalid state when we update a
  token. Else it keeps being marked invalid and thus not used.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/private/Authentication/Listeners/UserLoggedInListener.php [new file with mode: 0644]
lib/private/Authentication/Token/PublicKeyTokenProvider.php
lib/private/Server.php