(emailAddress)
| 1264 | |
| 1265 | //function to reset password |
| 1266 | function resetPassword(emailAddress) { |
| 1267 | firebase |
| 1268 | .auth() |
| 1269 | .sendPasswordResetEmail(emailAddress) |
| 1270 | .then(function () { |
| 1271 | appendNormal(`<span style="color:#98FB98">[✓] </span>The email to reset your password has been sent to your email inbox`); |
| 1272 | resetState = 0; |
| 1273 | cmdShow(); |
| 1274 | btnShow(); |
| 1275 | }) |
| 1276 | .catch(function (error) { |
| 1277 | appendError(`${String(error).toUpperCase()} PROCESS EXITED.`); |
| 1278 | resetState = 0; |
| 1279 | cmdShow(); |
| 1280 | btnShow(); |
| 1281 | }); |
| 1282 | } |
no test coverage detected