removed script tag

This commit is contained in:
Shailaja Kumari 2024-02-09 14:25:01 +05:30
parent 0de43c4c86
commit 9448f1b7f9
Signed by: shailaja
GPG Key ID: 81C942771BB69898
1 changed files with 1 additions and 13 deletions

View File

@ -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>