GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Address review comments

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 73e00301
......@@ -18,12 +18,10 @@ def update
end
def destroy
respond_to do |format|
if @identity.destroy
format.html { redirect_to admin_user_identities_path(@user), notice: 'User identity was successfully removed.' }
else
format.html { redirect_to admin_user_identities_path(@user), alert: 'Failed to remove user identity.' }
end
if @identity.destroy
redirect_to admin_user_identities_path(@user), notice: 'User identity was successfully removed.'
else
redirect_to admin_user_identities_path(@user), alert: 'Failed to remove user identity.'
end
end
......@@ -38,6 +36,6 @@ def identity
end
def identity_params
params[:identity].permit(:provider, :extern_uid)
params[:identity].require(:identity).permit(:provider, :extern_uid)
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment