1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

Work winxin login and department (#3532)

* admin work weixin department

* list work weixin department members

* add work-weixin django app

* work weixin login

* add SocialAuthUser model and update uid

* update work weixin departments frontend

* improve admin work weixin login and departments

* add sysadmin react fake view and del sys_file_scan_records_react.html

* user bind work weixin account
This commit is contained in:
sniper-py
2019-05-28 11:44:19 +08:00
committed by Daniel Pan
parent 5389650033
commit d7c17005b6
27 changed files with 1285 additions and 71 deletions

View File

@@ -40,13 +40,13 @@ class SocialLogin extends React.Component {
<p className="mb-2">{langCode == 'zh-cn' ? '企业微信': 'WeChat Work'}</p>
{socialConnected ?
<a href="#" className="btn btn-outline-primary" onClick={this.confirmDisconnect}>{gettext('Disconnect')}</a> :
<a href={`${siteRoot}social/login/weixin-work/?next=${encodeURIComponent(socialNextPage)}`} className="btn btn-outline-primary">{gettext('Connect')}</a>
<a href={`${siteRoot}work-weixin/oauth-connect/?next=${encodeURIComponent(socialNextPage)}`} className="btn btn-outline-primary">{gettext('Connect')}</a>
}
</div>
{this.state.isConfirmDialogOpen && (
<ModalPortal>
<ConfirmDisconnectWechat
formActionURL={`${siteRoot}social/disconnect/weixin-work/?next=${encodeURIComponent(socialNextPage)}`}
formActionURL={`${siteRoot}work-weixin/oauth-disconnect/?next=${encodeURIComponent(socialNextPage)}`}
csrfToken={csrfToken}
toggle={this.toggleDialog}
/>