Week 5 Lesson Notes - Beau Barth#22
Open
bbarth86 wants to merge 1 commit intopce-uw-jscript400:masterfrom
Open
Week 5 Lesson Notes - Beau Barth#22bbarth86 wants to merge 1 commit intopce-uw-jscript400:masterfrom
bbarth86 wants to merge 1 commit intopce-uw-jscript400:masterfrom
Conversation
MadEste
reviewed
Aug 7, 2019
| * **Your Answer:** | ||
|
|
||
| ---Whenever `npm run reset-db` is ran, the function `reset()` within `db/seed.js` file is executed. This function first calls the `deleteMany()` method of the `Party` collection, which eliminates any existing documents from the collection. Then the `create()` method is called and two initial documents are created. This is a useful method to reset/reformat to a "default" or "foundation" instance of your collection. | ||
|
|
MadEste
reviewed
Aug 7, 2019
| * **Your Answer:** | ||
|
|
||
| --- Assuming that various validations are performed against the username and password. For user name, system may check for format, type, etc. or for whether or not the user name already exists. For password, may check for format, type, length requirements, etc. If all validations are successful, a user/password record/collection is created. | ||
|
|
There was a problem hiding this comment.
Good! also checks if similar records already exist and uses encryption to save to db
MadEste
reviewed
Aug 7, 2019
| * **Your Answer:** | ||
|
|
||
| --- You want to be careful about identifying specific root cause for authentication failures as this type of information actually helps people attempting to hack, spoof, etc a given login or user identify where they need to adjust their attempt at credentials. | ||
|
|
MadEste
reviewed
Aug 7, 2019
| * **Your Answer:** | ||
|
|
||
| ---I think this is same as above, in that authentication refers to verification of the user credentials (name/password) as a means to identify the user, and authorization refering to verification of the user's capabilities, access rights, etc. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.