2015-04-30 13:06:18 -04:00
|
|
|
class Profiles::AccountsController < Profiles::ApplicationController
|
2013-10-09 09:37:18 -04:00
|
|
|
def show
|
|
|
|
@user = current_user
|
|
|
|
end
|
2015-03-21 20:44:40 -04:00
|
|
|
|
|
|
|
def unlink
|
|
|
|
provider = params[:provider]
|
2016-06-14 19:28:17 -04:00
|
|
|
current_user.identities.find_by(provider: provider).destroy unless provider.to_s == 'saml'
|
2015-03-21 20:44:40 -04:00
|
|
|
redirect_to profile_account_path
|
|
|
|
end
|
2013-10-09 09:37:18 -04:00
|
|
|
end
|