Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

email verification #3766

Merged
merged 16 commits into from
Dec 13, 2016
Merged

email verification #3766

merged 16 commits into from
Dec 13, 2016

Conversation

derhuerst
Copy link
Contributor

The PR adds another verification method:

The hash of the e-mail address you prove control over will be stored on the blockchain.

The process is integrated into the verification modal. In the beginning, the user choses a verification method. @tjsaw is working on the terms of service.

When the verification is done, a contract compatible with Certifier.sol will store the hash of the email address.

I tried to reuse as much of the code in modals/Verification/store.js as possible, although that makes it a bit harder to understand. I'm also not a fan of the inheritance used by sms-store.js and email-store.js. I'm open for proposals.

@derhuerst derhuerst added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Dec 9, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a94bbea on jr-email-verification into ** on master**.

// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import { stringify } from 'querystring';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest at least breaking this out into -

  1. React-specific (useless for libraries)
  2. Verification/use specific

/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
*/

.list li {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, from a library perspective styles here are a no-no. It is up to the display to determine how it should look.

@@ -17,6 +17,19 @@
import { stringify } from 'querystring';
import React from 'react';

import styles from './styles.css';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See style comment.

return smsVerification;
return verification;
}
get emailVerification () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space here between the 2 would be appreciated.

@@ -25,41 +25,31 @@ import { fromWei } from '~/api/util/wei';
import { Form, Input } from '~/ui';
import { nullableProptype } from '~/util/proptypes';

import { termsOfService } from '../../../3rdparty/sms-verification';
import * as sms from '../../../3rdparty/sms-verification';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ~/3rdparty/... rather so we don't need to clean it up later

We might want to bundle the code in `3rdparty`.

React & presentational components don't belong in there. At the
same time, the terms of service are strictly related to the use
of these external services. We decided to not bundle them, but
still keep them in a file called `terms-of-service.js`.

The commit also moves the "how it works" section into the
presentational part in `modals/Verification`.
@jacogr jacogr added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 9, 2016
@jacogr
Copy link
Contributor

jacogr commented Dec 9, 2016

Tests failing on build.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c439445 on jr-email-verification into ** on master**.

const methods = {
sms: {
label: 'SMS Verification', key: 0, value: 'sms',
description: (<p className={ styles.noSpacing }>It will be stored on the blockchain that you control a phone number (not <em>which</em>).</p>)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a crisis for this PR since this one straddled the boundary between merges, but going forward when touching components change the text into FormattedMessages.

@jacogr jacogr added the A8-looksgood 🦄 Pull request is reviewed well. label Dec 13, 2016
@jacogr jacogr removed the A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. label Dec 13, 2016
@gavofyork gavofyork merged commit 72b8ee8 into master Dec 13, 2016
@gavofyork gavofyork deleted the jr-email-verification branch December 13, 2016 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants