社交账号登录 &图片上传

This commit is contained in:
MaxKey
2022-06-09 07:23:28 +08:00
parent 030a28c82f
commit a8ed05b522
20 changed files with 92 additions and 130 deletions

View File

@@ -51,7 +51,7 @@
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="uploadFile">{{ 'mxk.users.picture' | i18n }}
</nz-form-label>
<div nz-col class="clearfix" nzSm="16" nzXs="24">
<nz-upload nzAction="file/upload/" nzListType="picture-card" [(nzFileList)]="fileList"
<nz-upload nzAction="/file/upload/" nzListType="picture-card" [(nzFileList)]="fileList"
nzName="uploadFile" [nzShowButton]="fileList.length < 1" [nzPreview]="handlePreview"
(nzChange)="uploadImageChange($event)">
<div>

View File

@@ -262,7 +262,7 @@
"filters": "Filters",
"basedn": "Base DN",
"msadDomain": "Active Directory Domain",
"accountMapping": "Account Mapping",
"accountMapping": "Domain Account",
"trustStore": "TrustStore",
"trustStorePassword": "TrustStore Password"
},

View File

@@ -249,7 +249,7 @@
"filters": "过滤器",
"basedn": "基本DN",
"msadDomain": "Active Directory域",
"accountMapping": "账号映射",
"accountMapping": "账号认证",
"trustStore": "证书",
"trustStorePassword": "证书密钥"
},

View File

@@ -249,7 +249,7 @@
"filters": "過濾器",
"basedn": "基本DN",
"msadDomain": "Active Directory域",
"accountMapping": "賬號映射",
"accountMapping": "賬號認證",
"trustStore": "證書",
"trustStorePassword": "證書密鑰"
},

View File

@@ -20,7 +20,7 @@ export const environment = {
production: true,
useHash: true,
api: {
baseUrl: '/sign',
baseUrl: '/sign/',
refreshTokenEnabled: true,
refreshTokenType: 're-request'
}

View File

@@ -130,28 +130,28 @@
<script src="http://wwcdn.weixin.qq.com/node/wework/wwopen/js/wwLogin-1.2.7.js"></script>
-->
<!--钉钉-->
<!--
<!---->
<script src="http://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script>
<script >
var ddredirect_uri="";
<script>
var ddredirect_uri = "";
var handleMessage = function (event) {
var origin = event.origin;
if( origin == "https://login.dingtalk.com" ) { //判断是否来自ddLogin扫码事件。
var loginTmpCode = event.data;
ddredirect_uri = ddredirect_uri+'&loginTmpCode='+loginTmpCode;
var origin = event.origin;
if (origin == "https://login.dingtalk.com") { //判断是否来自ddLogin扫码事件。
var loginTmpCode = event.data;
ddredirect_uri = ddredirect_uri + '&loginTmpCode=' + loginTmpCode;
//获取到loginTmpCode后就可以在这里构造跳转链接进行跳转了
window.top.location.href = ddredirect_uri;
}
};
if (typeof window.addEventListener != 'undefined') {
window.addEventListener('message', handleMessage, false);
window.addEventListener('message', handleMessage, false);
} else if (typeof window.attachEvent != 'undefined') {
window.attachEvent('onmessage', handleMessage);
window.attachEvent('onmessage', handleMessage);
}
</script>
-->
<!--飞书-->
<!---->
<!--
<script src="http://sf3-cn.feishucdn.com/obj/static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.1.js"></script>
<script type="text/javascript">
var fsredirectUri = "";
@@ -173,5 +173,6 @@
window.attachEvent('onmessage', handleMessage);
}
</script>
-->
</html>