Password reset #464
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Osprey
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
resilience
Tom's Wishlist
type: bug
type: discussion
type: error handling
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/spee.ch#464
Loading…
Reference in a new issue
No description provided.
Delete branch "password-reset"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Just the one comment about
user
@ -0,0 +33,4 @@
},
})
.then(user => {
userRecord = user;
Why don't you just use
user
here?@ -0,0 +1,69 @@
const { handleErrorResponse } = require('../../../utils/errorHandlers.js');
const logger = require('winston');
const db = require('../../../../models');
const { auth: { masterPassword } } = require('../../../../../config/siteConfig.js');
This seems like it could be a security vulnerability?
@ -0,0 +33,4 @@
},
})
.then(user => {
userRecord = user;
I need the
user
object to be available in the next.then
in the chain, so I hoisted it up to theupdateUserPassword
's scope by defininguserRecord
there. Is there a better pattern? I need theuser
object before I can check for a password match, and have to check for a password match before operating on that user object to change the password.@ -0,0 +33,4 @@
},
})
.then(user => {
userRecord = user;
Oh duh.
@ -0,0 +1,69 @@
const { handleErrorResponse } = require('../../../utils/errorHandlers.js');
const logger = require('winston');
const db = require('../../../../models');
const { auth: { masterPassword } } = require('../../../../../config/siteConfig.js');
As discussed in standup, the siteConfig will not be kept in version control (it is pulled from www.spee.ch's config which is gitignored). I'm going to merge.