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