all template files(home,login) #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Services/part1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@PeterSurda this is what you wanted?
yes
@ -0,0 +6,4 @@
<title>Inoreader To Readwise</title>
</head>
<body>
<button onclick="redirectToOAuth()">Login using inoreader</button>
why not just have a
<a href="{{auth_url}blablabla">Login via InoReader</a>
? Then you don't need javascript.Why is JS a problem?
It’s an overkill. If you prefer a button, you can still do a form with hidden inputs.
bc31779360
to0de43c4c86
It's unfinished.
@shailaja You forgot to remove the script part in the template. JS script is no more required as we'll send the created oauth_url from python code.
Yes that's part of what I meant.
Or, you can use a button and hidden form input fields, or you can do the string concatenation of the URL in Jinja2. But in any case don't forget to escape the values, either in python or in jinja2 (e.g. see here: https://stackoverflow.com/questions/1556554/how-do-i-html-escape-dangerous-unsanitized-input-in-jinja2)
I think that the form with a button and hidden input fields is the cleanest, but my instinct tells me that it's too fancy:
A simple href with already constructed url looks a good suggestion to me.
9448f1b7f9
to02e7cd4be4