Skip to content

Commit b94b36e

Browse files
committed
adding email helper in README
1 parent cb7dd2e commit b94b36e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ $ solid --allow-signup --port 8443 --cert /path/to/cert --key /path/to/key --roo
9191

9292
Your users will have a dedicated folder under `./accounts`. Also, your root domain's website will be in `./accounts/yourdomain.tld`. New users can create accounts on `/accounts/new` and create new certificates on `/accounts/cert`. An easy-to-use sign-up tool is found on `/accounts`.
9393

94+
##### How can send emails to my users with my Gmail?
95+
96+
> To use Gmail you may need to configure ["Allow Less Secure Apps"](https://www.google.com/settings/security/lesssecureapps) in your Gmail account unless you are using 2FA in which case you would have to create an [Application Specific](https://security.google.com/settings/security/apppasswords) password. You also may need to unlock your account with ["Allow access to your Google account"](https://accounts.google.com/DisplayUnlockCaptcha) to use SMTP.
97+
9498
### Run the Linked Data Platform (intermediate)
9599
If you don't want WebID Authentication and Web Access Control, you can run a simple Linked Data Platform.
96100

lib/identity-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ IdentityProvider.prototype.post = function (req, res, next) {
542542
text: 'Your account has been created',
543543
html: '<b>Your account has been created</b>'
544544
}, (err) => {
545-
debug('Error sending email', err)
545+
if (err) debug('Error sending email', err)
546546
callback()
547547
})
548548
} else {

0 commit comments

Comments
 (0)