mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-28 18:30:24 +02:00
Deactivated password login if oidc enabled
This commit is contained in:
parent
ae94dd974a
commit
bab66baedb
@ -50,14 +50,15 @@
|
||||
"client_secret": oidc.client.secret
|
||||
} | to_json }}
|
||||
|
||||
- name: Update administrator email in Listmonk
|
||||
- name: Update administrator email and password login in Listmonk
|
||||
shell: |
|
||||
docker exec -i {{ database_host }} psql \
|
||||
-U {{ database_username }} \
|
||||
-v ON_ERROR_STOP=1 \
|
||||
-d {{ database_name }} << 'EOSQL'
|
||||
UPDATE users
|
||||
SET email = '{{users.administrator.email}}'
|
||||
SET email = '{{ users.administrator.email }}',
|
||||
password_login = {{ 'false' if applications[application_id].features.oidc else 'true' }}
|
||||
WHERE username = 'administrator';
|
||||
EOSQL
|
||||
args:
|
||||
|
Loading…
x
Reference in New Issue
Block a user