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 83f1be5670
commit 3a8a7c911e
2 changed files with 6 additions and 2 deletions
+1 -1
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
+5 -1
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}}