srv/auth/DataSourceAuthenticationProvider.js
function (password, algorithm, salt) {

            return {
                hash: this.createHash(password, algorithm, salt),
                loginAttempts: 0,
                loginBlocked: null
            }

        }
function (password, algorithm, salt) {

            return {
                hash: this.createHash(password, algorithm, salt),
                loginAttempts: 0,
                loginBlocked: null
            }

        }
function ( password , algorithm , salt ) { return { hash : this . createHash ( password , algorithm , salt ) , loginAttempts : 0 , loginBlocked : null } }
Creates an authentication Object which contains all authentication relevant data for an user
@param password
@param algorithm
@param salt
@returns {{encryptedPassword: *, loginAttempts: number, loginBlocked: null}}
Creates an authentication Object which contains all authentication relevant data for an user