mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 05:49:32 -05:00
176ead8983
* added primary-email-check page, route and controllers * add `#add-email` internal link in settings to display new email form * added primary-email-check redirection with split test * update `lastPrimaryEmailCheck` when the default email address is set * added `lastPrimaryCheck` to admin panel * translations for primary-email-check * acceptance tests for primary-email-check * [web] multi-submit for primary email check * Using `confirmedAt` to prevent from displaying primary-email-check page Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> Co-Authored-By: Miguel Serrano <mserranom@gmail.com> GitOrigin-RevId: d8e3a280439da08038a4487d8bfd7b3b0596e3b5
41 lines
1.7 KiB
Text
41 lines
1.7 KiB
Text
extends ../layout-marketing
|
|
|
|
block content
|
|
main.content.content-alt#main-content
|
|
.login-register-container.text-center.primary-email-check-container
|
|
.card.login-register-card.primary-email-check-card
|
|
.login-register-header
|
|
h1.login-register-header-heading #{translate("keep_your_account_safe")}
|
|
.login-register-form(data-ol-multi-submit)
|
|
p
|
|
| !{translate("primary_email_check_question", { email: getUserEmail() }, ["strong"])}
|
|
form(
|
|
data-ol-async-form
|
|
action="/user/emails/primary-email-check"
|
|
method="POST"
|
|
)
|
|
input(name='_csrf', type='hidden', value=csrfToken)
|
|
+formMessages()
|
|
|
|
.primary-email-check-button-container
|
|
button.btn-primary.btn.btn-block.btn-primary-email-check-button(
|
|
type='submit'
|
|
data-ol-disabled-inflight
|
|
)
|
|
span(data-ol-inflight="idle") #{translate("yes_that_is_correct")}
|
|
span(hidden data-ol-inflight="pending") #{translate("confirming")}…
|
|
|
|
.primary-email-check-button-container
|
|
a.btn-default.btn.btn-block.btn-primary-email-check-button(
|
|
href="/user/settings#add-email"
|
|
data-ol-slow-link
|
|
event-tracking="primary-email-check-change-email"
|
|
event-tracking-mb="true"
|
|
event-tracking-trigger="click"
|
|
)
|
|
span(data-ol-inflight="idle") #{translate("no_update_email")}
|
|
span(hidden data-ol-inflight="pending") #{translate("redirecting")}…
|
|
p
|
|
| #{translate("keep_your_email_updated")}
|
|
p
|
|
| !{translate("learn_more_about_emails", {}, [{name: 'a', attrs: {href: '/learn/how-to/Keeping_your_account_secure', 'event-tracking': 'primary-email-check-learn-more', 'event-tracking-mb': 'true', 'event-tracking-trigger': 'click' }}])}
|