aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Password.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/auth/Password.js')
-rw-r--r--src/components/auth/Password.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/components/auth/Password.js b/src/components/auth/Password.js
index 0daa4c77a..5086b0bbd 100644
--- a/src/components/auth/Password.js
+++ b/src/components/auth/Password.js
@@ -50,17 +50,19 @@ class Password extends Component {
50 50
51 form = (() => { 51 form = (() => {
52 const { intl } = this.props; 52 const { intl } = this.props;
53 return new Form({ 53 return new Form(
54 fields: { 54 {
55 email: { 55 fields: {
56 label: intl.formatMessage(messages.emailLabel), 56 email: {
57 value: '', 57 label: intl.formatMessage(messages.emailLabel),
58 validators: [required, email], 58 value: '',
59 validators: [required, email],
60 },
59 }, 61 },
60 }, 62 },
61 }, 63 intl,
62 intl, 64 );
63 )})(); 65 })();
64 66
65 submit(e) { 67 submit(e) {
66 e.preventDefault(); 68 e.preventDefault();
@@ -80,7 +82,9 @@ class Password extends Component {
80 return ( 82 return (
81 <div className="auth__container"> 83 <div className="auth__container">
82 <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> 84 <form className="franz-form auth__form" onSubmit={e => this.submit(e)}>
83 <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> 85 <Link to="/auth/welcome">
86 <img src="./assets/images/logo.svg" className="auth__logo" alt="" />
87 </Link>
84 <H1>{intl.formatMessage(messages.headline)}</H1> 88 <H1>{intl.formatMessage(messages.headline)}</H1>
85 {status.length > 0 && status.includes('sent') && ( 89 {status.length > 0 && status.includes('sent') && (
86 <Infobox type="success" icon="checkbox-marked-circle-outline"> 90 <Infobox type="success" icon="checkbox-marked-circle-outline">