summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-02 01:29:28 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-02 01:29:28 +0100
commit3e7d14ccea6e3805d0e5eb8863c01946d980607d (patch)
treebbfccdf4eb4cabf2cb95bcd25dd35b132d26b2e7
parent11b807e4c3ee63172fecae9953d92a8b937a768a (diff)
Give username/password by GET
https://github.com/marienfressinaud/FreshRSS/issues/440 Warning, not so safe
-rw-r--r--app/views/index/formLogin.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index/formLogin.phtml b/app/views/index/formLogin.phtml
index cc925ea59..0381d0ed9 100644
--- a/app/views/index/formLogin.phtml
+++ b/app/views/index/formLogin.phtml
@@ -6,11 +6,11 @@
?><form id="loginForm" method="post" action="<?php echo _url('index', 'formLogin'); ?>">
<div>
<label for="username"><?php echo Minz_Translate::t('username'); ?></label>
- <input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
+ <input type="text" id="username" name="username" size="16" value="<?php echo isset($_GET['u']) && ctype_alnum($_GET['u']) ? $_GET['u'] : ''; ?>" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
</div>
<div>
<label for="passwordPlain"><?php echo Minz_Translate::t('password'); ?></label>
- <input type="password" id="passwordPlain" required="required" />
+ <input type="password" id="passwordPlain" value="<?php echo isset($_GET['p']) && ctype_alnum($_GET['p']) ? $_GET['p'] : ''; ?>" required="required" />
<input type="hidden" id="challenge" name="challenge" /><br />
<noscript><strong><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></strong></noscript>
</div>