srv/auth/DataSourceAuthenticationProvider.js
function (registrationRequest, cb) {
            if (registrationRequest.$.password) {
                var ret = {
                    providerUserId: registrationRequest.get(this.$.usernameField),
                    authenticationData: this.createAuthenticationData(registrationRequest.$.password)
                };
                cb(null, ret);
            } else {
                cb("No password set");
            }
        }
function (registrationRequest, cb) {
            if (registrationRequest.$.password) {
                var ret = {
                    providerUserId: registrationRequest.get(this.$.usernameField),
                    authenticationData: this.createAuthenticationData(registrationRequest.$.password)
                };
                cb(null, ret);
            } else {
                cb("No password set");
            }
        }
function ( registrationRequest , cb ) { if ( registrationRequest . $ . password ) { var ret = { providerUserId : registrationRequest . get ( this . $ . usernameField ) , authenticationData : this . createAuthenticationData ( registrationRequest . $ . password ) } ; cb ( null , ret ) ; } else { cb ( "No password set" ) ; } }
RegistrationRequest requires a password to create the registrationData
@param registrationRequest
@param cb
RegistrationRequest requires a password to create the registrationData