(before, after)
| 122 | } |
| 123 | |
| 124 | function update(before, after) { |
| 125 | if (!after.security) { |
| 126 | return; |
| 127 | } |
| 128 | after.security.password_timeout ??= timeout; |
| 129 | if (active != after.security.password_cache || |
| 130 | timeout != after.security.password_timeout) { |
| 131 | // init cache |
| 132 | clearIntervals(); |
| 133 | cache.clear(); |
| 134 | active = after.security.password_cache; |
| 135 | timeout = after.security.password_timeout; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Get password and unlocked key from cache |
nothing calls this directly
no test coverage detected