Horrific rebasing strategy, but working code.
This commit is contained in:
parent
ed96ab1cf5
commit
d1306aec53
@ -41,8 +41,11 @@ module Locomotive
|
||||
Locomotive.log "Devise username column: #{::Devise.cas_username_column}="
|
||||
Locomotive.log "Removing username: #{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 = event['data'].try(:[], 'ido_id')
|
||||
|
||||
ido_id and
|
||||
Account.exists?(::Devise.cas_username_column => ido_id) and
|
||||
Account.where(::Devise.cas_username_column => ido_id).destroy
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user