Skip to content

Commit

Permalink
DEV: Add event when user enables encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
udan11 committed Jul 13, 2020
1 parent 9aa388f commit 7ea3b5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/encrypt_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def update_keys
current_user.user_encryption_key.save
current_user.publish_identity

DiscourseEvent.trigger(:enabled_encrypt, current_user) if !old_identity

render json: success_json
end

Expand Down

0 comments on commit 7ea3b5b

Please sign in to comment.