Guest User

Untitled

a guest
Oct 23rd, 2017
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Rails.application.routes.draw do
  2. devise_for :users, :controllers => {sessions: 'sessions', registrations: 'registrations'}
  3. end
  4.  
  5. class RegistrationsController < Devise::RegistrationsController
  6. respond_to :json
  7. end
  8.  
  9. class SessionsController < Devise::SessionsController
  10. respond_to :json
  11. end
  12.  
  13. {
  14. user: {
  15. password: password,
  16. password_confirmation: password
  17. }
  18. }
  19.  
  20. Started POST "/users" for 23.233.9.94 at 2016-12-22 08:22:11 +0000
  21. Processing by RegistrationsController#create as */*
  22. Parameters: {"Payload: { rn user: {rn email: [email protected],rn password: password,rn password_confirmation: passwordrn }rn}"=>"[FILTERED]"}
  23. (0.2ms) begin transaction
  24. (0.1ms) rollback transaction
  25. Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)
  26.  
  27. {
  28. "user": {
  29. "email": "[email protected]",
  30. "password": "password",
  31. "password_confirmation": "password"
  32. }
  33. }
Add Comment
Please, Sign In to add comment