mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 11:16:54 +00:00
Replace service for CLA authorize (#29064)
This commit is contained in:
parent
b24f1f2f40
commit
badd4e9cb7
@ -437,7 +437,7 @@ description: "The Home Assistant contributor license agreement (CLA) signature p
|
|||||||
if (codeCheck && codeCheck.length > 0) {
|
if (codeCheck && codeCheck.length > 0) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "https://cla.home-assistant.io/github/exchange",
|
url: "https://service-hub-bots.home-assistant.io/cla-sign/authorize",
|
||||||
data: JSON.stringify({"code": codeCheck}),
|
data: JSON.stringify({"code": codeCheck}),
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
}).done(function(data){
|
}).done(function(data){
|
||||||
@ -446,7 +446,7 @@ description: "The Home Assistant contributor license agreement (CLA) signature p
|
|||||||
var clean_uri = uri.substring(0, uri.indexOf("?"));
|
var clean_uri = uri.substring(0, uri.indexOf("?"));
|
||||||
window.history.replaceState({}, document.title, clean_uri);
|
window.history.replaceState({}, document.title, clean_uri);
|
||||||
}
|
}
|
||||||
localStorage.setItem("gh_token", data.token);
|
localStorage.setItem("gh_token", data.access_token);
|
||||||
fill_fields();
|
fill_fields();
|
||||||
});
|
});
|
||||||
} else if (localStorage.getItem("gh_token") != null) {
|
} else if (localStorage.getItem("gh_token") != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user