1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 10:51:17 +00:00

Use user.set_password to change user password, instead of using raw rpc

This commit is contained in:
xiez
2012-08-16 14:31:37 +08:00
parent 930bd31c30
commit 338561cb83
3 changed files with 7 additions and 8 deletions

View File

@@ -77,9 +77,7 @@ class RegistrationManager(models.Manager):
"""
user = User.objects.create_user(username, password, False, False)
user.is_active = is_active
user.save()
user = User.objects.create_user(username, password, False, is_active)
registration_profile = self.create_profile(user)