allow flow through to passwordPolicy in case of empty ('') password (#3560)
This commit is contained in:
committed by
Florent Vilmart
parent
41358d2226
commit
0e900cbefd
@@ -366,7 +366,7 @@ RestWrite.prototype.transformUser = function() {
|
||||
|
||||
return promise.then(() => {
|
||||
// Transform the password
|
||||
if (!this.data.password) {
|
||||
if (this.data.password === undefined) { // ignore only if undefined. should proceed if empty ('')
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user