feat: added email verification check

This commit is contained in:
Kyle Gill
2019-06-05 16:07:40 -06:00
parent 667cbeb5f7
commit ae993e28d0
5 changed files with 81 additions and 6 deletions

View File

@@ -94,9 +94,21 @@ class User extends React.Component {
User: <ProfileSectionText>{authUser.email}</ProfileSectionText>
<div>
<ProfileSectionText style={{ fontWeight: 400 }}>
{authUser.emailVerified
? "Email has been verified"
: "Email not verified"}
{authUser.emailVerified ? (
"Email has been verified"
) : (
<span>
Email not verified{" "}
<span
onClick={() => {
console.log("resent!")
firebase.resendVerification(authUser.email)
}}
>
Resend?
</span>
</span>
)}
</ProfileSectionText>
</div>
</ProfileSectionHeader>