def do_recover(self, request, extra_message = None):
        if request.method == 'POST':
            submitted = request.POST.get('recover', '').strip()
            user = None
            if '@' not in submitted: # They entered a username
                user = self.lookup_user_by_username(submitted)
            else: # They entered an e-mail address
                users = self.lookup_users_by_email(submitted)
                if users:
                    if 1 > len(users):
                        extra_message = self.recovery_multiple_found_message
                        user = None
                    else:
                        user = users[0]
            if user:
                self.send_recovery_email(request, user)
                return self.show_message(
                    request, 'E-mail sent', self.recovery_email_sent_message
                )
            else:
                extra_message = self.recovery_not_found_message
        return self.render(request, self.recover_template, {
            'action': request.path,
            'message': extra_message,
        })
dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/auth.py/AuthConsumer.do_recover/swapped operands of `>`