取消lastname同步nickname

This commit is contained in:
2022-11-23 18:15:27 +08:00
3 changed files with 5 additions and 2 deletions

View File

@@ -193,7 +193,8 @@ class User < Owner
:show_email, :show_location, :show_department, :super_description, :show_super_description,
:technical_title, :province, :city, :custom_department, to: :user_extension, allow_nil: true
before_save :update_hashed_password, :set_lastname
# before_save :update_hashed_password, :set_lastname
before_save :update_hashed_password
after_save :reset_cache_data
after_create do
SyncTrustieJob.perform_later("user", 1) if allow_sync_to_trustie?