aboutsummaryrefslogtreecommitdiff
path: root/app/views/feed/add.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-06-14 16:22:33 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-06-14 16:22:33 +0200
commit8a131b056ee3566c2b54466f650c26c143b7c369 (patch)
treec3ea831010806897b4c8350888156c7671cb4ad4 /app/views/feed/add.phtml
parentff9091e4a0373fc2b8331fe1672f784cec6cc666 (diff)
Force autocomplete off
https://github.com/FreshRSS/FreshRSS/issues/880 Put a space in the user field instead of empty to avoid autocomplete. Use feed ID in the username/password field name.
Diffstat (limited to 'app/views/feed/add.phtml')
-rw-r--r--app/views/feed/add.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtml
index 4cdd3f390..35f6fbb12 100644
--- a/app/views/feed/add.phtml
+++ b/app/views/feed/add.phtml
@@ -67,7 +67,7 @@
<div class="form-group">
<label class="group-name" for="http_user"><?php echo _t('sub.feed.auth.username'); ?></label>
<div class="group-controls">
- <input type="text" name="http_user" id="http_user" class="extend" value="<?php echo $auth['username']; ?>" autocomplete="off" />
+ <input type="text" name="http_user" id="http_user" class="extend" value="<?php echo empty($auth['username']) ? ' ' : $auth['username']; ?>" autocomplete="off" />
</div>
<label class="group-name" for="http_pass"><?php echo _t('sub.feed.auth.password'); ?></label>