(user, password, config)
| 356 | |
| 357 | // Mark this private |
| 358 | function updateUserPassword(user, password, config) { |
| 359 | return rest |
| 360 | .update( |
| 361 | config, |
| 362 | Auth.master(config), |
| 363 | '_User', |
| 364 | { objectId: user.objectId, _perishable_token: user._perishable_token }, |
| 365 | { |
| 366 | password: password, |
| 367 | } |
| 368 | ) |
| 369 | .then(() => user); |
| 370 | } |
| 371 | |
| 372 | function buildEmailLink(destination, token, config) { |
| 373 | token = `token=${token}`; |
no test coverage detected
searching dependent graphs…