Skip to content
Snippets Groups Projects
Commit 63f6f780 authored by Valentine Zavgorodnev's avatar Valentine Zavgorodnev Committed by GitHub
Browse files

Cosmetic1 (#250)

* a couple of cosmetic changes

* little addition
parent 39d5561c
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ $menu-width: 250px; ...@@ -47,6 +47,7 @@ $menu-width: 250px;
&.right { &.right {
right: -$menu-width; right: -$menu-width;
visibility: hidden; visibility: hidden;
overflow-y: scroll;
} }
&.visible.right { &.visible.right {
......
...@@ -121,8 +121,10 @@ function* handleFacebookCallback() { ...@@ -121,8 +121,10 @@ function* handleFacebookCallback() {
return null; return null;
} }
if (!u.email) { if (!u.email) {
console.log('-- /handle_facebook_callback no email -->', this.session.uid, u.name); console.log('-- /handle_facebook_callback no email -->', this.session.uid, u);
throw new Error('Your Facebook account has no associated email address. Please add email to your Facebook account and try again.'); this.flash = 'Facebook login didn\'t provide any email addresses. Please make sure your Facebook account has a primary email address and try again.';
this.redirect('/');
return;
} }
if (user) { if (user) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment