The first public release of Fabled Minstrel #158
@@ -47,7 +47,7 @@ func checkNewPassword(w http.ResponseWriter, pw string) bool {
|
||||
// tests lower it, since each hash at the default cost takes most of a second
|
||||
// under the race detector, and check first that this default is at least
|
||||
// bcrypt's.
|
||||
var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK
|
||||
var passwordCost = bcrypt.DefaultCost
|
||||
|
||||
// hashPassword is the one place a password is hashed for storage.
|
||||
func hashPassword(pw string) ([]byte, error) {
|
||||
|
||||
@@ -49,7 +49,7 @@ func (e *Enricher) EnrichArtist(ctx context.Context, artistID pgtype.UUID, dataD
|
||||
case "theaudiodb":
|
||||
return nil
|
||||
case "none":
|
||||
if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK
|
||||
if row.ArtistArtSourcesVersion == currentVersion {
|
||||
return nil
|
||||
}
|
||||
if err := q.ClearArtistArtNone(ctx, artistID); err != nil {
|
||||
@@ -127,7 +127,9 @@ func (e *Enricher) recordArtistArt(ctx context.Context, artistID pgtype.UUID, th
|
||||
if thumbPath != "" {
|
||||
thumbArg = &thumbPath
|
||||
}
|
||||
fanartArg = &fanartPath // DELIBERATE BREAK
|
||||
if fanartPath != "" {
|
||||
fanartArg = &fanartPath
|
||||
}
|
||||
return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error {
|
||||
if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{
|
||||
ID: artistID,
|
||||
|
||||
Reference in New Issue
Block a user