disabled login form in admin is not secure, issue 859, thanks Tim

This commit is contained in:
mdipierro
2012-06-25 14:40:19 -05:00
parent 72e830694d
commit 35c5c332a0
2 changed files with 6 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.00.0 (2012-06-25 14:35:08) dev
Version 2.00.0 (2012-06-25 14:40:17) dev

View File

@@ -9,7 +9,7 @@
<h2>web2py&trade; {{=T('Web Framework')}}</h2>
<h3>{{=T('Login to the Administrative Interface')}}</h3>
<p class="help">{{=T('ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.')}}</p>
{{if request.is_https or request.is_local:}}
<div class="form">
<form action="{{=URL(r=request)}}" method="post">
<div><input type="hidden" name="send" value="{{=send}}"/></div>
@@ -19,4 +19,8 @@
</table>
</form>
</div>
{{else:}}
<p class="help">{{=T('ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.')}}</p>
{{pass}}