 
 
     updateAccount: (req, res, next) ->
+
         updateData = (user, body, data, cb) ->
             if body.timezone?
                 #TODO CHECK TIMEZONE VALIDITY


                data.password = utils.cryptPassword newPassword
                adapter.updateKeys newPassword, cb
            else
                cb()


        User.all (err, users) ->
            next err if err

                    return res.send 400, error: userErr if userErr

                    res.send
                        success: true
                        msg: 'Your new password is set'


