mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 05:04:03 +00:00
Allow user to remove openid
This commit is contained in:
parent
703dce4f5c
commit
be72b9d02e
4 changed files with 19 additions and 2 deletions
9
app/controllers/openids_controller.rb
Normal file
9
app/controllers/openids_controller.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class OpenidsController < ApplicationController
|
||||
load_and_authorize_resource :user
|
||||
load_and_authorize_resource through: :user
|
||||
|
||||
def destroy
|
||||
@openid.destroy
|
||||
redirect_to :back
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue