removed script tag
This commit is contained in:
parent
0de43c4c86
commit
9448f1b7f9
|
@ -8,18 +8,6 @@
|
|||
<body>
|
||||
<!-- <button onclick="redirectToOAuth()">Login using inoreader</button> -->
|
||||
<a href="{{oauth_url}}">Login via InoReader</a>
|
||||
<script>
|
||||
function redirectToOAuth() {
|
||||
// Encode URL components using Jinja filters
|
||||
var encodedRedirectUri = encodeURIComponent('{{ redirect_uri }}');
|
||||
var encodedOptionalScopes = encodeURIComponent('{{ optional_scopes }}');
|
||||
|
||||
// Construct the URL using Jinja variables
|
||||
var oauthUrl = `{{ auth_url }}?client_id={{ client_id }}&redirect_uri=${encodedRedirectUri}&response_type=code&scope=${encodedOptionalScopes}&state={{ csrf_protection_string }}`;
|
||||
|
||||
// Redirect to the constructed URL
|
||||
window.location.href = oauthUrl;
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue