mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add auth.local.passwordHashMethod field
This commit is contained in:
@@ -54,7 +54,12 @@ let schema = new Schema({
|
||||
// Store a lowercase version of username to check for duplicates
|
||||
lowerCaseUsername: String,
|
||||
hashed_password: String, // eslint-disable-line camelcase
|
||||
salt: String,
|
||||
// Legacy password are hashed with SHA1, new ones with bcrypt
|
||||
passwordHashMethod: {
|
||||
type: String,
|
||||
enum: ['bcrypt', 'sha1'],
|
||||
},
|
||||
salt: String, // Salt for SHA1 encrypted passwords, not stored for bcrypt
|
||||
},
|
||||
timestamps: {
|
||||
created: {type: Date, default: Date.now},
|
||||
|
||||
Reference in New Issue
Block a user