(hash)
| 280 | }, |
| 281 | |
| 282 | getForgotPassCompleteData(hash) { |
| 283 | return new Promise(async (resolve, reject) => { |
| 284 | const forgotPassObj = await this.getForgotPassObject(hash).catch(error => log('error', error)); |
| 285 | const isValidHash = forgotPassObj && this.validateForgottenPassHash(forgotPassObj); |
| 286 | const user = forgotPassObj && await this.get(forgotPassObj.email).catch(error => log('error', error)); |
| 287 | |
| 288 | if (!forgotPassObj || !isValidHash || !user) { |
| 289 | return reject(false); |
| 290 | } |
| 291 | |
| 292 | resolve({ user, isValidHash, forgotPassObj }); |
| 293 | }); |
| 294 | }, |
| 295 | |
| 296 | setAvatar(userEmail, file) { |
| 297 | return new Promise(async (resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected