// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. export default class EmailVerify extends React.Component { constructor(props) { super(props); this.handleResend = this.handleResend.bind(this); this.state = {}; } handleResend() { const newAddress = window.location.href.replace('&resend_success=true', ''); window.location.href = newAddress + '&resend=true'; } render() { var title = ''; var body = ''; var resend = ''; var resendConfirm = ''; if (this.props.isVerified === 'true') { title = global.window.config.SiteName + ' Email Verified'; body =
Your email has been verified! Click here to log in.
; } else { title = global.window.config.SiteName + ' Email Not Verified'; body =Please verify your email address. Check your inbox for an email.
; resend = ( ); if (this.props.resendSuccess) { resendConfirm ={' Verification email sent.'}