🐛 Add missing email scope to OIDC backend.

And additionaly emit a warn log message about the error.
This commit is contained in:
Andrey Antukh 2021-05-27 11:37:31 +02:00
parent f8f506a8be
commit e8919ee340
3 changed files with 18 additions and 4 deletions

View file

@ -42,7 +42,7 @@ PENPOT_REGISTRATION_ENABLED=true
# Comma separated list of allowed domains to register. Empty for allow
# all.
PENPOT_REGISTRATION_DOMAIN_WHITELIST=""
# PENPOT_REGISTRATION_DOMAIN_WHITELIST=""
# Penpot comes with the facility to create quick demo users that are
# automatically deleted after some time. This settings enables or

View file

@ -97,7 +97,7 @@ update_registration_enabled() {
fi
}
update_registration_enabled() {
update_analytics_enabled() {
if [ -n "$PENPOT_ANALYTICS_ENABLED" ]; then
sed -i \
-e "s|^//var penpotAnalyticsEnabled = .*;|var penpotAnalyticsEnabled = $PENPOT_ANALYTICS_ENABLED;|g" \