Skip to content

Commit bc3122d

Browse files
committedJan 4, 2020
chore: move updating from 1.0 to 2.0 near to end of readme
1 parent 10f522a commit bc3122d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ In case you need to install the whole set of dependencies
2626
> npm install passport passport-local mongoose passport-local-mongoose --save
2727
```
2828

29-
### Updating from 1.x to 2.x
30-
31-
The default digest algorithm was changed due to security implications from **sha1** to **sha256**. If you decide to upgrade a production system from 1.x to 2.x your users **will not be able to login** since the digest algorithm was changed! In these cases plan some migration strategy and/or use the **sha1** option for the digest algorithm.
32-
3329
## Usage
3430

3531
### Plugin Passport-Local Mongoose
@@ -290,6 +286,10 @@ User.register({username:'username', active: false}, 'password', function(err, us
290286
});
291287
```
292288

289+
## Updating from 1.x to 2.x
290+
291+
The default digest algorithm was changed due to security implications from **sha1** to **sha256**. If you decide to upgrade a production system from 1.x to 2.x your users **will not be able to login** since the digest algorithm was changed! In these cases plan some migration strategy and/or use the **sha1** option for the digest algorithm.
292+
293293
## License
294294

295295
Passport-Local Mongoose is licenses under the [MIT license](http://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)