summaryrefslogtreecommitdiff
path: root/login_form.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-03-28 13:03:43 +0400
committerAndrew Dolgov <[email protected]>2011-03-28 13:03:43 +0400
commitbf9fc06072f2dcd5b17aec1fe6a03b046236d360 (patch)
tree079b5c4818d70c9554c363a48c5d5429304df9ff /login_form.php
parenta4cd9d58ff94d6603cdd5e36870e26fdfe40ca5e (diff)
only use autologin with SSL certificate when AUTO_LOGIN is enabled, otherwise redirect to login form as with remote auth
Diffstat (limited to 'login_form.php')
-rw-r--r--login_form.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/login_form.php b/login_form.php
index 1dbc00549..5810c5cef 100644
--- a/login_form.php
+++ b/login_form.php
@@ -131,11 +131,11 @@ function validateLoginForm(f) {
<tr><td align="right"><?php echo __("Login:") ?></td>
<td align="right"><input name="login"
onchange="fetchProfiles()" onfocus="fetchProfiles()"
- value="<?php echo get_remote_user() ?>"></td></tr>
+ value="<?php echo get_remote_user($link) ?>"></td></tr>
<tr><td align="right"><?php echo __("Password:") ?></td>
<td align="right"><input type="password" name="password"
onchange="fetchProfiles()" onfocus="fetchProfiles()"
- value="<?php echo get_remote_fakepass() ?>"></td></tr>
+ value="<?php echo get_remote_fakepass($link) ?>"></td></tr>
<tr><td align="right"><?php echo __("Language:") ?></td>
<td align="right">
<?php