mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
VC/Zoom: Fix error with slashes in user identifiers
This commit is contained in:
parent
378a127a5f
commit
bb0d92db2d
@ -11,6 +11,10 @@
|
||||
|
||||
## Changelog
|
||||
|
||||
### 3.1.3
|
||||
|
||||
- Fix error with user identifiers (in "authenticators" lookup mode) containing a forward slash
|
||||
|
||||
### 3.1.2
|
||||
|
||||
- Do not include Zoom link in event descriptions returned by the HTTP API (iCalendar files for
|
||||
|
||||
@ -60,7 +60,8 @@ def _iter_user_identifiers(user):
|
||||
done = set()
|
||||
for provider in ZoomPlugin.settings.get('authenticators'):
|
||||
for __, identifier in user.iter_identifiers(check_providers=True, providers={provider}):
|
||||
if identifier in done:
|
||||
# skip garbage that breaks API calls; a valid identifier will never contain a slash..
|
||||
if identifier in done or '/' in identifier:
|
||||
continue
|
||||
done.add(identifier)
|
||||
yield identifier
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = indico-plugin-vc-zoom
|
||||
version = 3.1.2
|
||||
version = 3.1.3
|
||||
description = Zoom video-conferencing plugin for Indico
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user