소스 검색

[Web] add log messages to verify-sso function

FreddleSpl0it 2 년 전
부모
커밋
2f1e1438e9
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      data/web/inc/functions.inc.php

+ 6 - 6
data/web/inc/functions.inc.php

@@ -2378,8 +2378,8 @@ function identity_provider($_action, $_data = null, $_extra = null) {
         clear_session();  
         $_SESSION['return'][] =  array(
           'type' => 'danger',
-          'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
-          'msg' => 'login_failed'
+          'log' => array(__FUNCTION__, $info['email']),
+          'msg' => array('login_failed', 'empty attribute mapping or missing template attribute')
         );
         return false;
       }
@@ -2390,8 +2390,8 @@ function identity_provider($_action, $_data = null, $_extra = null) {
         clear_session();  
         $_SESSION['return'][] =  array(
           'type' => 'danger',
-          'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
-          'msg' => 'login_failed'
+          'log' => array(__FUNCTION__, $info['email']),
+          'msg' => array('login_failed', 'specified template not found')
         );
         return false;
       }
@@ -2407,8 +2407,8 @@ function identity_provider($_action, $_data = null, $_extra = null) {
         clear_session();  
         $_SESSION['return'][] =  array(
           'type' => 'danger',
-          'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
-          'msg' => 'login_failed'
+          'log' => array(__FUNCTION__, $info['email']),
+          'msg' => array('login_failed', 'mailbox creation failed')
         );
         return false;
       }