Replace service for CLA authorize (#29064)

This commit is contained in:
Joakim Sørensen 2023-10-02 09:01:37 +02:00 committed by GitHub
parent b24f1f2f40
commit badd4e9cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,7 +437,7 @@ description: "The Home Assistant contributor license agreement (CLA) signature p
if (codeCheck && codeCheck.length > 0) {
$.ajax({
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}),
contentType: "application/json",
}).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("?"));
window.history.replaceState({}, document.title, clean_uri);
}
localStorage.setItem("gh_token", data.token);
localStorage.setItem("gh_token", data.access_token);
fill_fields();
});
} else if (localStorage.getItem("gh_token") != null) {