def save(self): d = self.cleaned_data.get self.user = RegistrationProfile.objects.create_inactive_user( d("username"), d("password"), d("email"), get_current_site(self.request) ).user UserRegistered.send(sender=zums, user=self.user) return "/"
def save(self): d = self.cleaned_data.get email = d("email") if not email: email = "*****@*****.**" % d("username") self.user = User.objects.create_user(username=d("username"), password=d("password"), email=email) UserRegistered.send(sender=zums, user=self.user) login(self.request, authenticate(username=d("username"), password=d("password"))) return "/"
def save(self): d = self.cleaned_data.get self.user = RegistrationProfile.objects.create_inactive_user( d("username"), d("password"), d("email"), get_current_site(self.request)).user UserRegistered.send( sender=zums, user=self.user, ) return "/"
def save(self): d = self.cleaned_data.get email = d("email") self.user = User.objects.create_user( username=hashlib.md5(email).hexdigest(), password=d("password"), email=email ) self.user.first_name = d("name") self.user.save() UserRegistered.send(sender=zums, user=self.user) login(self.request, authenticate(username=self.user.username, password=d("password"))) return "/"
def save(self): d = self.cleaned_data.get email = d("email") if not email: email = "*****@*****.**" % d("username") self.user = User.objects.create_user(username=d("username"), password=d("password"), email=email) UserRegistered.send( sender=zums, user=self.user, ) login(self.request, authenticate(username=d("username"), password=d("password"))) return "/"
def save(self): d = self.cleaned_data.get email = d("email") self.user = User.objects.create_user( username=hashlib.md5(email).hexdigest(), password=d("password"), email=email) self.user.first_name = d("name") self.user.save() UserRegistered.send( sender=zums, user=self.user, ) login( self.request, authenticate(username=self.user.username, password=d("password"))) return "/"