MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / resetPassword

Function resetPassword

public/src/js/script.js:1266–1282  ·  view source on GitHub ↗
(emailAddress)

Source from the content-addressed store, hash-verified

1264
1265//function to reset password
1266function 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}

Callers 2

replyFunction · 0.85
script.jsFile · 0.85

Calls 4

appendNormalFunction · 0.90
cmdShowFunction · 0.90
btnShowFunction · 0.90
appendErrorFunction · 0.90

Tested by

no test coverage detected