diff --git a/app/controllers/password_change_controller.rb b/app/controllers/password_change_controller.rb index bd9e0068b5..b6bc8b2e91 100644 --- a/app/controllers/password_change_controller.rb +++ b/app/controllers/password_change_controller.rb @@ -71,6 +71,7 @@ class PasswordChangeController < ApplicationController def set_user username = params[:id].strip.downcase @user = User.where("email = ? OR username = ?", username, username).first + @organization = @user.organization end def set_errors