redirect_to auth_url(params[:user][:auth_provider], params[:user][:auth_uid]), :status => :temporary_redirect
end
end
+
+ def destroy
+ if current_user.deletion_allowed?
+ current_user.soft_destroy!
+
+ session.delete(:user)
+ session_expires_automatically
+
+ flash[:notice] = t ".success"
+ redirect_to root_path
+ else
+ head :bad_request
+ end
+ end
end