Remove password from cache
This commit is contained in:
parent
7badd7d5ee
commit
2192e1b895
1 changed files with 4 additions and 0 deletions
|
@ -954,6 +954,10 @@ class NextcloudHandler:
|
||||||
)
|
)
|
||||||
|
|
||||||
if r.status_code < 299:
|
if r.status_code < 299:
|
||||||
|
for password in self.cache['cached_passwords']:
|
||||||
|
if self.cache['cached_passwords']['id'] == post_obj['id']:
|
||||||
|
self.cache['cached_passwords'].pop(password.numerator-1)
|
||||||
|
self._write_cache()
|
||||||
return r.json()
|
return r.json()
|
||||||
self.error(
|
self.error(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue