Skip to content

Commit bd4ec6a

Browse files
committed
Merge branch 'DXEX-501-Remove_magic_global_references' of github.com:luisbritos/docs into DXEX-501-Remove_magic_global_references
2 parents 4e988ee + 27ccfc4 commit bd4ec6a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

articles/connections/database/custom-db/templates/change-password.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function changePassword(email, newPassword, callback) {
7777
// callback(new Error("my error message"));
7878
//
7979
// If an error is returned, it will be passed to the query string of the page
80-
// where the user is being redirected to after clicking the confirmation link.
80+
// to which the user is being redirected after clicking the confirmation link.
8181
// For example, returning `callback(new Error("error"))` and redirecting to
8282
// https://example.com would redirect to the following URL:
8383
// https://example.com?email=alice%40example.com&message=error&success=false
@@ -104,7 +104,7 @@ function changePassword(email, newPassword, callback) {
104104
server: 'the server',
105105
options: {
106106
database: 'the db name',
107-
// encrypt: true for Windows Azure enable this
107+
// encrypt: true for Windows Azure enable this
108108
}
109109
});
110110
@@ -196,7 +196,7 @@ function changePassword(email, newPassword, callback) {
196196
/**
197197
* hashPassword
198198
*
199-
* This function hashes a password using HMAC SHA256 algorythm.
199+
* This function hashes a password using HMAC SHA256 algorithm.
200200
*
201201
* @password {[string]} password to be hased
202202
* @salt {[string]} salt to be used in the hashing process

articles/connections/database/custom-db/templates/get-user.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ function getByEmail(email, callback) {
198198

199199
### MongoDB
200200

201+
```
201202
function getByEmail(email, callback) {
202203
const MongoClient = require('mongodb@3.1.4').MongoClient;
203204
const client = new MongoClient('mongodb://user:pass@mymongoserver.com');

0 commit comments

Comments
 (0)