2677cd17d8
* new signin/signup * cleanup and password reset * new flow working * cleanup * add 'autoComplete' props * fix prop * try to call email/confirm before resetting password * Dont use password reset token for email confirmation. * add password reset * password manager improvements * update lbryinc * cleanup * slightly improve close button on sign up page * moar fixes * fix password autofil Co-authored-by: Mark Beamer Jr <markbeamerjr@gmail.com>
24 lines
685 B
JavaScript
24 lines
685 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectEmailToVerify,
|
|
doUserResendVerificationEmail,
|
|
doUserCheckEmailVerified,
|
|
selectUser,
|
|
doFetchAccessToken,
|
|
selectAccessToken,
|
|
} from 'lbryinc';
|
|
import UserEmailVerify from './view';
|
|
|
|
const select = state => ({
|
|
email: selectEmailToVerify(state),
|
|
user: selectUser(state),
|
|
accessToken: selectAccessToken(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
resendVerificationEmail: email => dispatch(doUserResendVerificationEmail(email)),
|
|
checkEmailVerified: () => dispatch(doUserCheckEmailVerified()),
|
|
fetchAccessToken: () => dispatch(doFetchAccessToken()),
|
|
});
|
|
|
|
export default connect(select, perform)(UserEmailVerify);
|