Skip to content

Commit

Permalink
style: Format code with rubocop, prettier, standardrb and standardjs
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Jul 12, 2023
1 parent 6ea05d5 commit 3e90041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user_deletion.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The default flow soft-deletes the User record and sign them out.

We have a task `rake anonymize:users` that anonymizes user records after a period of time. This task calls [AnonymizationService](../app/services/anonymization_service.rb) which strips all columns of the user's data.

1. Running `rake anonymize:users` anonymizes user records that were discarded a certain number of days ago and have not been anonymized yet. The number of days is stored in a constant called [ANONYMIZE\_USER\_DATA\_AFTER_DAYS](../config/initializers/0_constants.rb) which if set to **0** will anonymize the user record immediately. This can be setup on your cloud platform to run periodically if needed.
1. Running `rake anonymize:users` anonymizes user records that were discarded a certain number of days ago and have not been anonymized yet. The number of days is stored in a constant called [ANONYMIZE_USER_DATA_AFTER_DAYS](../config/initializers/0_constants.rb) which if set to **0** will anonymize the user record immediately. This can be setup on your cloud platform to run periodically if needed.
2. Some fields are set to custom values. For example, `full_name` to **"Deleted User"**, `email` to **"prefix@domain"** where **prefix** and **domain** are customizable and password is set to a secure 60 character **SecureRandom** password.

### IMPORTANT:
Expand Down

0 comments on commit 3e90041

Please sign in to comment.