'Adds an extra "account" tag to the success and error messages.'

def add_message(self, request, level, message_template, message_context={}, extra_tags='', *args, **kwargs):

    if message_template.endswith(self.message_templates('logged_in', 'logged_out')):
        return
    if message_template.endswith(self.message_templates('account_connected')):
        level = messages.SUCCESS
        user_url = reverse('users.user_edit', kwargs={'username': request.user.username}, locale=request.LANGUAGE_CODE)
        next_url = request.session.get('sociallogin_next_url', None)
        if (next_url != user_url):
            return
    extra_tag = 'account'
    if extra_tags:
        extra_tags += '    '
    extra_tags += extra_tag
    super(KumaAccountAdapter, self).add_message(request, level, message_template, message_context, extra_tags, *args, **kwargs)
