[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page by eastmael

View this thread on steempeak.com
· @eastmael ·
$144.58
[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page
#### Repository
https://github.com/utopian-io/signup.utopian.io

### Bug Fixes
* #### Improve Username Input Validation
![](https://user-images.githubusercontent.com/29425738/40268872-783d7dd6-5bb0-11e8-8e71-440b5977449a.gif)

#### Details
* Github Issue: https://github.com/utopian-io/signup.utopian.io/issues/21
* [`src/components/steps/account/pick_account.vue`](https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-ab9c4cb4f24346d44a4449b1aa924769)
![](https://cdn.steemitimages.com/DQmYLHK4JYWg88UkbuQrKJz3XqXkk1BMHZeUh8d5FX249UT/image.png)
    * Added three feedback `span` elements to hold the `fa-spinner` (checking account feedback), `fa-check` (valid or available account), and `fa-times` (invalid or unavailable account name)
![](https://cdn.steemitimages.com/DQmdvkWG4eq5jhH5msCDZDDXc4XacKuqRE59g7GRkkyjjyx/image.png)
    * Added the `input_error` and `success_msg` div holders to display the error message and success message, respectively. Used vue's `v-html`  property to render the html content of the error and success messages;
![](https://cdn.steemitimages.com/DQmQv5ZekYEvh6MyxSDTaFJk6EgX77LZJvB99RvwtSvU5Fp/image.png)
    * use `_.debounce()` to add a `1 second` delay to check for account's existence

### New Features

* #### Add Recaptcha to Signup Page
![](https://user-images.githubusercontent.com/29425738/40278171-0166c160-5c67-11e8-87da-89bef2f06ddb.gif)

### Implementation Details

* [`package.json`](https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
![](https://cdn.steemitimages.com/DQmVuTBXGvrsFsHwgvXFWETBpWMoEAT3WxvqdjQLsun143a/image.png)
    * Added `lodash` and `vue-recaptcha` dependencies. The former for `debounce()` when user type's the account name. 

* [`index.html`](https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-eacf331f0ffc35d4b482f1d15a887d3b)
![](https://cdn.steemitimages.com/DQmTbsGbPmbMKu1ko2ypK1U7cLHB1UUfp2oJagey5Wvtqcb/image.png)
    * Import reCAPTCHA's api.js 
    * Added `font-awesome.css` for user account's feedback icons

* [`src/components/signup.vue`](https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-e1bb0b900bcd8457d082d38c54d85651)
    * Main file updated
![](https://cdn.steemitimages.com/DQmRuMrFDpFpWg73PzYv5SXB4kyXr634x6h41WLCx9Xh4no/image.png)
    * Encapsulated Github signup button inside a `vue-recaptcha` component
![](https://cdn.steemitimages.com/DQmVJGQDPkLK26WHjkJwAdX7sAMR8a9KjeYrfXihzFpqeqe/image.png)
    * Added `onGithubCaptchaVerified` and `onGithubCaptchaExpired` event handlers; in `onGithubCaptchaVerified`, re-use existing `authenticate(<provider>)` 

#### Link to Merged Pull Request
https://github.com/utopian-io/signup.utopian.io/pull/22

#### GitHub Account
https://github.com/eastmaels
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 7 others
properties (23)
post_id50,510,278
authoreastmael
permlinkutopian-dev-add-invisible-recaptcha-to-sign-up-page
categoryutopian-io
json_metadata"{"image": ["https://user-images.githubusercontent.com/29425738/40268872-783d7dd6-5bb0-11e8-8e71-440b5977449a.gif"], "tags": ["utopian-io", "development", "steemdev"], "format": "markdown", "links": ["https://github.com/utopian-io/signup.utopian.io", "https://github.com/utopian-io/signup.utopian.io/issues/21", "https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-ab9c4cb4f24346d44a4449b1aa924769", "https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2", "https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-eacf331f0ffc35d4b482f1d15a887d3b", "https://github.com/utopian-io/signup.utopian.io/pull/22/files#diff-e1bb0b900bcd8457d082d38c54d85651", "https://github.com/utopian-io/signup.utopian.io/pull/22", "https://github.com/eastmaels"], "app": "steemit/0.1"}"
created2018-05-27 13:07:57
last_update2018-05-27 13:07:57
depth0
children8
net_rshares36,624,027,990,366
last_payout2018-06-03 13:07:57
cashout_time1969-12-31 23:59:59
total_payout_value109.696 SBD
curator_payout_value34.886 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,784
author_reputation51,681,288,563,260
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (71)
@iamankit ·
$0.08
this feature is really valuable for utopian... great work man
πŸ‘  
properties (23)
post_id50,510,513
authoriamankit
permlinkre-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180527t130952270z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-27 13:10:00
last_update2018-05-27 13:10:00
depth1
children1
net_rshares20,719,922,290
last_payout2018-06-03 13:10:00
cashout_time1969-12-31 23:59:59
total_payout_value0.061 SBD
curator_payout_value0.019 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length61
author_reputation4,823,178,482,239
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@eastmael ·
Thanks for the feedback.
properties (22)
post_id50,574,478
authoreastmael
permlinkre-iamankit-re-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180527t224918545z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-27 22:49:21
last_update2018-05-27 22:49:21
depth2
children0
net_rshares0
last_payout2018-06-03 22:49:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length24
author_reputation51,681,288,563,260
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@rehan12 ·
$0.08
Well that is indeed nice work done.Keep up the good work of yours .
πŸ‘  
properties (23)
post_id50,511,659
authorrehan12
permlinkre-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180527t131944793z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-27 13:19:48
last_update2018-05-27 13:19:48
depth1
children1
net_rshares20,297,066,733
last_payout2018-06-03 13:19:48
cashout_time1969-12-31 23:59:59
total_payout_value0.059 SBD
curator_payout_value0.019 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length67
author_reputation276,128,422,051,112
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@eastmael ·
Thanks for the feedback. Did it on my free time.
properties (22)
post_id50,574,565
authoreastmael
permlinkre-rehan12-re-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180527t225015152z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-27 22:50:18
last_update2018-05-27 22:50:18
depth2
children0
net_rshares0
last_payout2018-06-03 22:50:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length48
author_reputation51,681,288,563,260
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@amosbastian ·
$0.08
Thanks for the contribution!

You are doing some great work for Utopian.io! Keep it up!


Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1232214).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  
properties (23)
post_id50,580,273
authoramosbastian
permlinkre-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180527t235648355z
categoryutopian-io
json_metadata"{"tags": ["utopian-io"], "links": ["https://join.utopian.io/guidelines", "https://review.utopian.io/result/3/1232214", "https://support.utopian.io/", "https://discord.gg/uTyJkNm", "https://join.utopian.io/"], "app": "steemit/0.1"}"
created2018-05-27 23:56:48
last_update2018-05-27 23:56:48
depth1
children1
net_rshares19,874,211,176
last_payout2018-06-03 23:56:48
cashout_time1969-12-31 23:59:59
total_payout_value0.057 SBD
curator_payout_value0.019 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length579
author_reputation174,225,255,912,876
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@eastmael ·
Thank you Amos. It always feels good when you contribute to something bigger than yourself. :)
properties (22)
post_id50,587,180
authoreastmael
permlinkre-amosbastian-re-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180528t012729777z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-28 01:27:33
last_update2018-05-28 01:27:33
depth2
children0
net_rshares0
last_payout2018-06-04 01:27:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length94
author_reputation51,681,288,563,260
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@blazing ·
wonderful work you have done from your side making the community great again :)
properties (22)
post_id50,612,701
authorblazing
permlinkre-eastmael-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180528t061933589z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-05-28 06:19:36
last_update2018-05-28 06:19:36
depth1
children0
net_rshares0
last_payout2018-06-04 06:19:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length79
author_reputation103,117,727,459,305
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
$0.08
Hey @eastmael
**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Contributing on Utopian**
Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube.

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
πŸ‘  
properties (23)
post_id50,654,837
authorutopian-io
permlinkre-utopian-dev-add-invisible-recaptcha-to-sign-up-page-20180528t131009z
categoryutopian-io
json_metadata"{"app": "beem/0.19.29"}"
created2018-05-28 13:10:09
last_update2018-05-28 13:10:09
depth1
children0
net_rshares20,619,879,310
last_payout2018-06-04 13:10:09
cashout_time1969-12-31 23:59:59
total_payout_value0.081 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length505
author_reputation152,913,012,544,965
root_title"[Utopian Dev] Add Invisible ReCAPTCHA to Sign-up Page"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)