correct user passwd and sent json to front-end

This commit is contained in:
Rueshyna authored and chris committed 2012-12-04 00:31:06 +08:00
1 parent eb97d417bd
commit 8a7ae3f061
3 files changed
+8 -18

No files matched your search

-1
View File
@@ -110,7 +110,6 @@ Devise.setup do |config|
# Turn scoped views on. Before rendering "sessions/new", it will first check for
# "users/sessions/new". It's turned off by default because it's slower if you
# are using only default views.
# config.scoped_views = true
# Configure the default scope given to Warden. By default it's the first
# devise role declared in your routes.
+4 -1
View File
@@ -1,5 +1,8 @@
Orbit::Application.routes.draw do
devise_for :users
devise_for :users do
match "/users_passwd" => "desktop/registrations#update", :as => :users_passwd, :via => :put
end
mount Resque::Server, :at => "/admin/resque"
# routes for sinatra app