mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
allow subscribing to twitter feeds without oauth (if require auth checkbox is unset)
This commit is contained in:
+3
-2
@@ -284,12 +284,13 @@ class Dlg extends Protected_Handler {
|
||||
" <input
|
||||
placeHolder=\"".__("Password")."\"
|
||||
dojoType=\"dijit.form.TextBox\" type='password'
|
||||
style=\"width : 10em;\" name='pass'\">
|
||||
style=\"width : 10em;\" name='pass'\">".
|
||||
" <p class='insensitive'>".__("OAuth will be used automatically for Twitter feeds.")."</p>
|
||||
</div></div>";
|
||||
|
||||
|
||||
print "<div style=\"clear : both\">
|
||||
<input type=\"checkbox\" dojoType=\"dijit.form.CheckBox\" id=\"feedDlg_loginCheck\"
|
||||
<input type=\"checkbox\" name=\"need_auth\" dojoType=\"dijit.form.CheckBox\" id=\"feedDlg_loginCheck\"
|
||||
onclick='checkboxToggleElement(this, \"feedDlg_loginContainer\")'>
|
||||
<label for=\"feedDlg_loginCheck\">".
|
||||
__('This feed requires authentication.')."</div>";
|
||||
|
||||
+2
-1
@@ -188,8 +188,9 @@ class RPC extends Protected_Handler {
|
||||
$cat = db_escape_string($_REQUEST['cat']);
|
||||
$login = db_escape_string($_REQUEST['login']);
|
||||
$pass = db_escape_string($_REQUEST['pass']);
|
||||
$need_auth = db_escape_string($_REQUEST['need_auth']) != "";
|
||||
|
||||
$rc = subscribe_to_feed($this->link, $feed, $cat, $login, $pass);
|
||||
$rc = subscribe_to_feed($this->link, $feed, $cat, $login, $pass, $need_auth);
|
||||
|
||||
print json_encode(array("result" => $rc));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user