         '/friends/:id'  : exports.User.getFriends
 
     put :
-        '/user'   : exports.User.updateUser
+        '/user/mail/:id'        : exports.User.updateUserMail
+        '/user/password/:id'    : exports.User.updateUserPassword
 
     delete :
         '/user/friend'  : exports.User.deleteFriend
                    else
                        res.send 400
            else
                console.log 'bad_id'
                res.send 400
        else
            console.log 'bad_params'
            res.send 400

    requestUser : (friends, offset, infos, callback) =>

        else
            callback list

    updateUserPassword : (req, res, next) =>
        param = req.body
        if param? and req.params.id?
            if param.password? and param.passwordconfirm?
                if param.password is param.passwordconfirm
                    Db.update 'user', req.params.id, {password:md5(param.password)}, () =>
                        res.send 200
                else
                    res.send 400
            else
                res.send 400
        else
            res.send 400

    updateUserMail : (req, res, next) =>
        param = req.body
        if param? and req.params.id?
            if param.mail?
                Db.find 'user', {'mail': param.mail}, (body) =>
                    if not body? or body.length is 0
                        Db.update 'user', req.params.id, {mail:param.mail}, () =>
                            res.send 200
                    else
                        res.send 400
            else
                res.send 400
        else
            res.send 400

    deleteFriend : (req, res, next) =>
        console.log "delete friend"
