summaryrefslogtreecommitdiff
path: root/users/app/views/sessions/new.html.haml
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-04 09:48:30 +0200
committerAzul <azul@leap.se>2013-09-04 09:48:30 +0200
commite915e1090d2b5a17a0dcde8b11a63d11565c62a7 (patch)
tree3ca8f79a0c74be34b083ebc801236cf54dfada1a /users/app/views/sessions/new.html.haml
parent07d0f6fe1d80cb730bd12a03a107c18d18779acc (diff)
fix login form - use api session url
There's no non api sessions resource anymore.
Diffstat (limited to 'users/app/views/sessions/new.html.haml')
-rw-r--r--users/app/views/sessions/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/views/sessions/new.html.haml b/users/app/views/sessions/new.html.haml
index c915968..0939e00 100644
--- a/users/app/views/sessions/new.html.haml
+++ b/users/app/views/sessions/new.html.haml
@@ -2,7 +2,7 @@
.span9
= render :partial => 'users/warnings'
%h2=t :login
- = simple_form_for @session, :validate => true, :html => { :id => :new_session, :class => 'form-horizontal' } do |f|
+ = simple_form_for [:api, @session], :validate => true, :html => { :id => :new_session, :class => 'form-horizontal' } do |f|
= f.input :login, :required => false, :label => t(:username), :input_html => { :id => :srp_username }
= f.input :password, :required => false, :input_html => { :id => :srp_password }
.form-actions