BUSHIDO_FIX: Adds bushido hooks user.added user.removed, and updates app.claimed to work with bushido_user_id as the permanent id
Conflicts: lib/locomotive/hosting/bushido/hooks.rb
This commit is contained in:
parent
b2bfec1bc4
commit
5a4a9f5475
@ -41,11 +41,8 @@ module Locomotive
|
|||||||
Locomotive.log "Devise username column: #{::Devise.cas_username_column}="
|
Locomotive.log "Devise username column: #{::Devise.cas_username_column}="
|
||||||
Locomotive.log "Removing username: #{event['data'].try(:[], 'ido_id')}"
|
Locomotive.log "Removing username: #{event['data'].try(:[], 'ido_id')}"
|
||||||
|
|
||||||
ido_id = event['data'].try(:[], 'ido_id')
|
Account.exists?(::Devise.cas_username_column => event['data'].try(:[], 'ido_id')) and
|
||||||
|
Account.where(::Devise.cas_username_column => event['data'].try(:[], 'ido_id')).destroy
|
||||||
ido_id and
|
|
||||||
Account.exists?(::Devise.cas_username_column => ido_id) and
|
|
||||||
Account.where(::Devise.cas_username_column => ido_id).destroy
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user