summaryrefslogtreecommitdiff
path: root/app/views/profiles
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-12 19:05:21 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-12 19:05:21 +0200
commit9b7b27ce7216652493648228f2352d1d08836549 (patch)
tree7a9e790a045c39268a90ac2ebe68026404f3af94 /app/views/profiles
parentc959143ed75b7a97d23d2198f4a34eb2a1455b21 (diff)
downloadgitlab-ce-9b7b27ce7216652493648228f2352d1d08836549.tar.gz
Add authenticity_token: true to multipart forms
Rails 4 does not generate token by default It fixes bug when you get to sign-in page after trying to upload image with comment Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/profiles')
-rw-r--r--app/views/profiles/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml
index 307109ea9c5..ca3f8247223 100644
--- a/app/views/profiles/show.html.haml
+++ b/app/views/profiles/show.html.haml
@@ -8,7 +8,7 @@
-= form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" } do |f|
+= form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" }, authenticity_token: true do |f|
-if @user.errors.any?
%div.alert.alert-error
%ul