diff options
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index ac4e1b0..b34ad59 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -144,8 +144,6 @@ class UserRegisterForm(forms.Form): new_profile.timezone = cleaned_data["timezone"] if settings.IS_DEVELOPMENT: new_profile.is_email_verified = True - new_profile.save() - return u_name, pwd else: new_profile.activation_key = generate_activation_key(new_user.username) new_profile.key_expiry_time = datetime.datetime.strftime( @@ -154,7 +152,7 @@ class UserRegisterForm(forms.Form): "%Y-%m-%d %H:%M:%S" ) new_profile.save() - return new_user.email, new_profile.activation_key + return u_name, pwd, new_user.email, new_profile.activation_key class UserLoginForm(forms.Form): |