aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r--mediagoblin/auth/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index cf07d668..e0d9c8f1 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -62,8 +62,14 @@ def register(request):
request.POST['password'])
user.save(validate=True)
+ # log the user in
+ request.session['user_id'] = unicode(user['_id'])
+ request.session.save()
+
+ # send verification email
send_verification_email(user, request)
+ # give the user a message and redirect
messages.add_message(
request,
messages.INFO,