Skip to content
Snippets Groups Projects
Unverified Commit bae75412 authored by tribut's avatar tribut :man_dancing:
Browse files

Fix updating avatar_color and telegram_username

parent 40783afe
Branches
No related tags found
No related merge requests found
...@@ -5,6 +5,9 @@ class ApplicationController < ActionController::Base ...@@ -5,6 +5,9 @@ class ApplicationController < ActionController::Base
def configure_permitted_parameters def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:invitation_token]) devise_parameter_sanitizer.permit(:sign_up, keys: [:invitation_token])
devise_parameter_sanitizer.permit(:account_update) do |u|
u.permit(:name, :email, :password, :password_confirmation, :avatar_color, :telegram_username, :current_password)
end
end end
def authorize_shiftcoordinator def authorize_shiftcoordinator
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
<%= f.color_field :avatar_color %> <%= f.color_field :avatar_color %>
</div> </div>
<div class="field hidden"> <div class="field hidden">
<%= f.label :telegram_username %> <%= f.label :telegram_username %>
<%= f.text_field :telegram_username %> <%= f.text_field :telegram_username %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment