function doQuery(options) {
            return models.User.changePassword(
                options.data.password[0],
                _.omit(options, ['data'])
            ).then(() => {
                return Promise.resolve({
                    password: [{message: common.i18n.t('notices.api.users.pwdChangedSuccessfully')}]
                });
            });
        }
function doQuery(options) {
            return models.User.changePassword(
                options.data.password[0],
                _.omit(options, ['data'])
            ).then(() => {
                return Promise.resolve({
                    password: [{message: common.i18n.t('notices.api.users.pwdChangedSuccessfully')}]
                });
            });
        }
function doQuery ( options ) { return models . User . changePassword ( options . data . password [ 0 ] , _ . omit ( options , [ 'data' ] ) ) . then ( ( ) => { return Promise . resolve ( { password : [ { message : common . i18n . t ( 'notices.api.users.pwdChangedSuccessfully' ) } ] } ) ; } ) ; }
### Model Query
Make the call to the Model layer
@param {Object} options
@returns {Object} options
### Model Query Make the call to the Model layer
Query the database to change the password of a user