Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
a2828f8b
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a2828f8b
编写于
1月 05, 2020
作者:
F
freesky-edward
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add client_code parameter
上级
0846cc72
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
13 deletion
+15
-13
content/en/cla.md
content/en/cla.md
+1
-0
content/zh/cla.md
content/zh/cla.md
+1
-0
themes/project/static/js/cla.js
themes/project/static/js/cla.js
+13
-13
未找到文件。
content/en/cla.md
浏览文件 @
a2828f8b
...
...
@@ -180,6 +180,7 @@ Please select one applicable statement from the following and fill in the blanks
<tr>
<td>
<input
type=
"hidden"
value=
""
id=
"oauth-code"
/>
<input
type=
"hidden"
value=
""
id=
"client"
/>
<input
type=
"hidden"
value=
"en"
id=
"language"
/>
</td>
</tr>
...
...
content/zh/cla.md
浏览文件 @
a2828f8b
...
...
@@ -189,6 +189,7 @@ title = "签署CLA"
<tr>
<td>
<input
type=
"hidden"
value=
""
id=
"oauth-code"
/>
<input
type=
"hidden"
value=
""
id=
"client"
/>
<input
type=
"hidden"
value=
"zh"
id=
"language"
/>
</td>
</tr>
...
...
themes/project/static/js/cla.js
浏览文件 @
a2828f8b
...
...
@@ -28,6 +28,12 @@ function initCurrentDate() {
function
getCode
()
{
if
(
getLanguage
()
==
"
zh
"
)
{
$
(
"
#client
"
).
val
(
"
6c298174d665b993c8a4dd56b0976654d3ef6f59af6c88f59b5b0c99f635c893
"
);
}
else
{
$
(
"
#client
"
).
val
(
"
88913556129bdae86458ec266f174b0cc5833198641e0e219891e7eb463bd3bf
"
)
}
code
=
getQueryString
(
"
code
"
)
if
(
!
code
||
code
==
""
)
{
oauthLogin
();
...
...
@@ -59,23 +65,13 @@ function oauthLogin() {
if
(
!
code
||
code
==
""
)
{
let
config
=
{
providerID
:
"
openeuler_bot
"
,
client_id
:
"
88913556129bdae86458ec266f174b0cc5833198641e0e219891e7eb463bd3bf
"
,
redirect_uri
:
"
https://openeuler.org/en
/cla.html
"
,
client_id
:
$
(
"
#client
"
).
val
()
,
redirect_uri
:
window
.
location
.
origin
+
"
/
"
+
getLanguage
()
+
"
/cla.html
"
,
response_type
:
"
code
"
,
authorization
:
"
https://gitee.com/oauth/authorize
"
,
scopes
:
{
request
:
[
"
user_info
"
,
"
emails
"
]}
}
if
(
getLanguage
()
==
"
zh
"
)
{
config
=
{
providerID
:
"
openeuler_bot
"
,
client_id
:
"
6c298174d665b993c8a4dd56b0976654d3ef6f59af6c88f59b5b0c99f635c893
"
,
redirect_uri
:
"
https://openeuler.org/zh/cla.html
"
,
response_type
:
"
code
"
,
authorization
:
"
https://gitee.com/oauth/authorize
"
,
scopes
:
{
request
:
[
"
user_info
"
,
"
emails
"
]}
}
}
let
client
=
new
jso
.
JSO
(
config
)
client
.
callback
()
...
...
@@ -221,6 +217,9 @@ function initClaPage() {
"
email
"
:
$
.
trim
(
$
(
'
#individual-email
'
).
val
()),
"
telephone
"
:
$
.
trim
(
$
(
'
#individual-telephone
'
).
val
()),
"
fax
"
:
$
.
trim
(
$
(
'
#individual-fax
'
).
val
()),
"
code
"
:
$
.
trim
(
$
(
'
#oauth-code
'
).
val
()),
"
lang
"
:
$
.
trim
(
$
(
'
#language
'
).
val
()),
"
client
"
:
$
.
trim
(
$
(
'
#client
'
).
val
()),
};
}
else
{
// legalentity
...
...
@@ -238,6 +237,7 @@ function initClaPage() {
"
fax
"
:
$
.
trim
(
$
(
'
#legalentity-fax
'
).
val
()),
"
code
"
:
$
.
trim
(
$
(
'
#oauth-code
'
).
val
()),
"
lang
"
:
$
.
trim
(
$
(
'
#language
'
).
val
()),
"
client
"
:
$
.
trim
(
$
(
'
#client
'
).
val
()),
};
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录