fixup! Use nextcloud-password-confirmation

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-11-12 12:54:17 +01:00
parent 1cb5f316ed
commit cddc6c0207
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 2 additions and 4 deletions

View File

@ -1775,11 +1775,9 @@ OC.PasswordConfirmation = {
function (result, password) { function (result, password) {
if (result && password !== '') { if (result && password !== '') {
self._confirmPassword(password, config); self._confirmPassword(password, config);
} else { } else if (_.isFunction(rejectCallback)) {
if (rejectCallback && typeof rejectCallback === 'function') {
rejectCallback() rejectCallback()
} }
}
}, },
true, true,
config.label, config.label,