mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-23 07:04:27 +01:00
Consider account configs when user patches their own account (#836)
* Consider account configs when user patches their own account * Add test for name changing * Add test to ensure that users changing emails are marked unconfirmed * Only allow users to change to emails in whitelisted domains * Simplify assertion for error check
This commit is contained in:
4
CTFd/cache/__init__.py
vendored
4
CTFd/cache/__init__.py
vendored
@@ -4,8 +4,8 @@ cache = Cache()
|
||||
|
||||
|
||||
def clear_config():
|
||||
from CTFd.utils import get_config, get_app_config
|
||||
cache.delete_memoized(get_config)
|
||||
from CTFd.utils import _get_config, get_app_config
|
||||
cache.delete_memoized(_get_config)
|
||||
cache.delete_memoized(get_app_config)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user