mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
Improve adfs error msg (#5898)
* improve error msg * send error msg to sys/org admin * fix code
This commit is contained in:
@@ -19,6 +19,7 @@ const MSG_TYPE_DRAFT_REVIEWER = 'draft_reviewer';
|
||||
// const MSG_TYPE_GUEST_INVITATION_ACCEPTED = 'guest_invitation_accepted';
|
||||
const MSG_TYPE_REPO_MONITOR = 'repo_monitor';
|
||||
const MSG_TYPE_DELETED_FILES = 'deleted_files';
|
||||
const MSG_TYPE_SAML_SSO_FAILED = 'saml_sso_failed';
|
||||
|
||||
class NoticeItem extends React.Component {
|
||||
|
||||
@@ -282,6 +283,13 @@ class NoticeItem extends React.Component {
|
||||
return { avatar_url : null, notice };
|
||||
}
|
||||
|
||||
if (noticeType === MSG_TYPE_SAML_SSO_FAILED) {
|
||||
const { error_msg } = detail;
|
||||
let notice = gettext(error_msg);
|
||||
|
||||
return { avatar_url : null, notice };
|
||||
}
|
||||
|
||||
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
|
||||
|
||||
// }
|
||||
|
Reference in New Issue
Block a user