Skip to content

Commit

Permalink
login form and login urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
densitydesign lab committed Aug 11, 2012
1 parent 33a3d35 commit 23525a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion anta/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sven.anta.models import Relation, Corpus

class LoginForm( forms.Form ):
username = forms.CharField( max_length=12, widget=forms.TextInput )
username = forms.CharField( max_length=32, widget=forms.TextInput )
password = forms.CharField( max_length=64, label='Password', widget=forms.PasswordInput(render_value=False ) )

#
Expand Down
2 changes: 1 addition & 1 deletion gui/templates/gui/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>Login</h2>


{% if loginerror %}
<div class="alert alert-error">Sorry, something went wrong. Please, be sure the information provided are correct and try again.</div>
<div class="alert alert-error">Sorry, something went wrong. Please, be sure the information provided are correct and try again. {{loginerror}}</div>
{% endif %}

<form action="{% url gui_login %}" method="POST">
Expand Down
3 changes: 2 additions & 1 deletion urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
urlpatterns = patterns('',
url(r'^anta/', include('sven.anta.urls')),
url(r'^api/anta/', include('sven.core.urls')), # anta api
url(r'^gui/', include('sven.gui.urls')), # sven gui
url(r'^gui/', include('sven.gui.urls')), # sven gui
url(r'^$', 'sven.gui.views.documents', name='sven_documents' ), # sven gui

# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
Expand Down

0 comments on commit 23525a3

Please sign in to comment.