2015-09-11 14:41:01 +05:30
|
|
|
class Profiles::AccountsController < Profiles::ApplicationController
|
2014-09-02 18:07:02 +05:30
|
|
|
def show
|
|
|
|
@user = current_user
|
|
|
|
end
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
def unlink
|
|
|
|
provider = params[:provider]
|
2016-06-22 15:30:34 +05:30
|
|
|
current_user.identities.find_by(provider: provider).destroy unless provider.to_s == 'saml'
|
2015-04-26 12:48:37 +05:30
|
|
|
redirect_to profile_account_path
|
|
|
|
end
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|