summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-13 20:16:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-13 20:16:48 +0300
commit46231f0f1d2d8aad0712ba98a6368af138a8561c (patch)
treebd0a86cf2d05c2473f8c74af2c72bb9816ff5abf /app/views
parentfbf69899032ffd5e74e401aae7c94852a0722e92 (diff)
downloadgitlab-ce-46231f0f1d2d8aad0712ba98a6368af138a8561c.tar.gz
Fix password set form and infinite loop
Diffstat (limited to 'app/views')
-rw-r--r--app/views/passwords/new.html.haml15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/passwords/new.html.haml b/app/views/passwords/new.html.haml
index 769a47a042c..c92424160b3 100644
--- a/app/views/passwords/new.html.haml
+++ b/app/views/passwords/new.html.haml
@@ -1,10 +1,9 @@
-%h3.page_title Setup your new password
-
-%br
-
-= form_for @user, url: profile_password_path, method: :put do |f|
- .padded
- %p.slead After successful password update you will be redirected to dashboard
+= form_for @user, url: profile_password_path, method: :post do |f|
+ .light-well.padded
+ %p.slead
+ Please set new password before proceed.
+ %br
+ After successful password update you will be redirected to login screen
-if @user.errors.any?
.alert.alert-error
%ul
@@ -20,4 +19,4 @@
= f.password_field :password_confirmation, required: true
.clearfix
.input
- = f.submit 'Save password', class: "btn btn-save"
+ = f.submit 'Set new password', class: "btn btn-create"