Skip to content

Commit

Permalink
prevent global only user to reset password (restore a line break) ace…
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed May 14, 2024
1 parent 6f79b59 commit 123566e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrainPortal/app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def request_password #:nodoc:

def send_password #:nodoc:
@user = User.where( :login => params[:login], :email => params[:email] ).first
if @user

if @user
if user_must_link_to_globus?(@user)
contact = RemoteResource.current_resource.support_email.presence || User.admin.email.presence || "the support staff"
wipe_user_password_after_globus_link(@user) # for legacy or erroneously set users
Expand Down

0 comments on commit 123566e

Please sign in to comment.