Guest User

Untitled

a guest
Mar 20th, 2018
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. function regeneratePassword(response, password, confirmPassword) {
  2. const requestOptions = {
  3. method: 'PUT',
  4. headers: {
  5. 'Content-Type': 'application/json',
  6. 'access-token': response.headers['access-token'],
  7. 'client': response.headers['client'],
  8. 'token-type': response.headers['token-type'],
  9. 'uid': response.headers['uid'],
  10. 'expiry': response.headers['expiry']
  11. },
  12. body: JSON.stringify({"password": password, "password_confirmation": confirmPassword})
  13. };
  14. return fetch(`${baseURL.URL}${baseURL.PORT}/auth/password/`, requestOptions).then(handleResponse);
  15. }
  16.  
  17. Started PUT "/auth/password/" for ::1 at 2018-03-20 11:06:28 +0545
  18. Processing by DeviseTokenAuth::PasswordsController#update as */*
  19. User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = $1 LIMIT $2 [["uid", "manager2@gmail.com"], ["LIMIT", 1]]
  20. CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = $1 LIMIT $2 [["uid", "manager2@gmail.com"], ["LIMIT", 1]]
  21. [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.12ms)
  22. Completed 401 Unauthorized in 7ms (Views: 1.6ms | ActiveRecord: 1.7ms)
Add Comment
Please, Sign In to add comment