fixes #2419
This commit is contained in:
9
app/controllers/maintenance/user/passwords_controller.rb
Normal file
9
app/controllers/maintenance/user/passwords_controller.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Maintenance
|
||||
module User
|
||||
class PasswordsController < ApplicationController
|
||||
def edit
|
||||
@user = CurrentUser.user
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -55,6 +55,8 @@ class UsersController < ApplicationController
|
||||
cookies.delete(:favorite_tags_with_categories)
|
||||
if @user.errors.any?
|
||||
flash[:notice] = @user.errors.full_messages.join("; ")
|
||||
else
|
||||
flash[:notice] = "Settings updated"
|
||||
end
|
||||
respond_with(@user)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user