(hash)
| 254 | }, |
| 255 | |
| 256 | getForgotPassObject(hash) { |
| 257 | return new Promise((resolve, reject) => { |
| 258 | ForgotPass.findOne({ hash}, async (error, data) => { |
| 259 | if (error || !data) { |
| 260 | return reject(error || 'error.invalidToken'); |
| 261 | } |
| 262 | |
| 263 | resolve(data); |
| 264 | }); |
| 265 | }); |
| 266 | }, |
| 267 | |
| 268 | validateForgottenPassHash(forgotPassObject) { |
| 269 | if (!forgotPassObject) return false; |
nothing calls this directly
no outgoing calls
no test coverage detected