MAPG-69 ability to cancel Google signup
This commit is contained in:
1 parent
1cfbef418e
commit
6338e35cfb
3 files changed
+21
-3
No files matched your search
@@ -10,14 +10,15 @@
|
||||
<p class="justify">Please confirm your sign up request. Your account will be linked to your Google account.</p>
|
||||
<?php endif; ?>
|
||||
<input class="big fullWidth marginTop" type="email" name="email" placeholder="Email address" value="<?= $email ?>" disabled>
|
||||
<div class="right marginTop">
|
||||
<button type="submit">
|
||||
<div class="right">
|
||||
<button class="marginTop marginRight" type="submit">
|
||||
<?php if ($found): ?>
|
||||
Link
|
||||
<?php else: ?>
|
||||
Sign up
|
||||
<?php endif; ?>
|
||||
</button>
|
||||
</button><!--
|
||||
--><button id="cancelGoogleSignupButton" class="gray marginTop" type="button">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -35,6 +36,14 @@
|
||||
window.location.replace('/');
|
||||
});
|
||||
};
|
||||
|
||||
document.getElementById('cancelGoogleSignupButton').onclick = function () {
|
||||
document.getElementById('loading').style.visibility = 'visible';
|
||||
|
||||
MapGuesser.httpRequest('POST', '/signup/google/reset', function () {
|
||||
window.location.replace('/signup');
|
||||
});
|
||||
};
|
||||
})();
|
||||
</script>
|
||||
<?php require ROOT . '/views/templates/main_footer.php'; ?>
|
||||
Reference in new issue
Block a user