def verify_username(strategy, backend, details, user=None, **kwargs):
 if ((not user) and (u'username' in details)):
  if User.objects.filter(username__iexact=details[u'username']).exists():
   raise AuthAlreadyAssociated(backend, _(u'This username is already taken. Please choose another.'))

def verify_username ( strategy , backend , details , user = None , ** kwargs ) : if ( ( not user ) and ( u'username' in details ) ) : if User . objects . filter ( username__iexact = details [ u'username' ] ) . exists ( ) : raise AuthAlreadyAssociated ( backend , _ ( u'This username is already taken. Please choose another.' ) )
verified whether username is still free .