1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-07-03 00:57:33 +02:00

[Web] update user based on template after login

This commit is contained in:
FreddleSpl0it
2024-12-01 16:36:16 +01:00
parent d61a08c2a9
commit 45c13c687b
7 changed files with 85 additions and 70 deletions

View File

@ -467,7 +467,7 @@ function keycloak_mbox_login_rest($user, $pass, $extra = null){
$create_res = mailbox('add', 'mailbox_from_template', array(
'domain' => explode('@', $user)[1],
'local_part' => explode('@', $user)[0],
'name' => $user_res['firstName'] . " " . $user_res['lastName'],
'name' => $user_res['name'],
'authsource' => 'keycloak',
'template' => $iam_settings['templates'][$mapper_key]
));