You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7f141b4
Browse filesBrowse the repository at this point in the historyBrowse files
constsubject=invite ? `You have been added to the ${ORG.name} admin team` : `Choose a new password for ${ORG.name}`
51
+
constintro=invite
52
+
? `You have been added to the ${ORG.name} admin team. Choose your own password to start. Nobody else knows it, not even the person who added you.`
53
+
: 'Someone (hopefully you) asked to choose a new password for your admin account.'
54
+
constoutro=invite ? '' : 'If you did not ask for this, ignore this email: your password stays as it is.'
55
+
returnsendMail({
56
+
to: admin.email,
57
+
subject,
58
+
text: `Jai Bhim ${admin.name},\n\n${intro}\n\nChoose your password here (the link works for ${valid}, once):\n${url}\n\nYour login email: ${admin.email}\n\n${outro}\n\n— ${ORG.name}`.replace(/\n{3,}/g,'\n\n'),
59
+
html: `<p>जय भीम <b>${esc(admin.name)}</b>,</p>
60
+
<p>${esc(intro)}</p>
61
+
${button(invite ? 'Choose my password / अपना पासवर्ड चुनें' : 'Choose a new password / नया पासवर्ड चुनें',url)}
62
+
<p style="color:#555;font-size:13px">The link works for ${valid}, once. Your login email: <b>${esc(admin.email)}</b></p>
📧 If <b>{form.email}</b> belongs to an admin account, we have sent it a link to choose a new password. It works for 1 hour.
91
+
</p>
92
+
<pclassName="text-sm text-navy/70">No email after a few minutes? Check the spam folder, or ask a super admin to send you a link from the Team page.</p>
93
+
<buttontype="button"onClick={backToLogin}className="btn w-full rounded-xl border-2 border-brand text-brand hover:bg-mist">← Back to login</button>
0 commit comments