mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
Add cancel to registrations controller as a way to delete information from session.
This commit is contained in:
@@ -4,4 +4,9 @@ class HomeController < ApplicationController
|
||||
|
||||
def private
|
||||
end
|
||||
|
||||
def set
|
||||
session["user_facebook_oauth_token"] = "something"
|
||||
head :ok
|
||||
end
|
||||
end
|
||||
|
||||
@@ -39,9 +39,10 @@ Rails.application.routes.draw do
|
||||
:sign_in => "login", :sign_out => "logout",
|
||||
:password => "secret", :confirmation => "verification",
|
||||
:unlock => "unblock", :sign_up => "register",
|
||||
:registration => "management"
|
||||
:registration => "management", :cancel => "giveup"
|
||||
}
|
||||
end
|
||||
|
||||
match "/set", :to => "home#set"
|
||||
root :to => "home#index"
|
||||
end
|
||||
Reference in New Issue
Block a user