'retrieve the user info about the token
:return: a dictionary with the user information:
- \'db\': the name of the database
- \'token\': the token, if token is valid
- \'name\': the name of the partner, if token is valid
- \'login\': the user login, if the user already exists
- \'email\': the partner email, if the user does not exist'

@api.model
def signup_retrieve_info(self, token):

    partner = self._signup_retrieve_partner(token, raise_exception=True)
    res = {'db': self.env.cr.dbname}
    if partner.signup_valid:
        res['token'] = token
        res['name'] = partner.name
    if partner.user_ids:
        res['login'] = partner.user_ids[0].login
    else:
        res['email'] = res['login'] = (partner.email or '')
    return res
