diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-03-31 12:01:51 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:28 +0200 |
commit | 4843e5ce301c4ac1e4cccf21b7d33e5e2a2b3042 (patch) | |
tree | 3196f9d642f73a1d62c874cc02241427777f9280 /apps/encryption/lib/session.php | |
parent | 0f28d538a0af769220bcba120f0a7340dd0aba5f (diff) | |
download | nextcloud-server-4843e5ce301c4ac1e4cccf21b7d33e5e2a2b3042.tar.gz nextcloud-server-4843e5ce301c4ac1e4cccf21b7d33e5e2a2b3042.zip |
use password change logic to userhooks to avoid recursions
Diffstat (limited to 'apps/encryption/lib/session.php')
-rw-r--r-- | apps/encryption/lib/session.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/encryption/lib/session.php b/apps/encryption/lib/session.php index e049a8fe403..8da11e522ce 100644 --- a/apps/encryption/lib/session.php +++ b/apps/encryption/lib/session.php @@ -100,4 +100,15 @@ class Session { $this->session->set('privateKey', $key); } + + /** + * remove keys from session + */ + public function clear() { + $this->session->remove('publicSharePrivateKey'); + $this->session->remove('privateKey'); + $this->session->remove('encryptionInitialized'); + + } + }
\ No newline at end of file |