From af5435d58640144cdf29b955ecf96b8792bf6484 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 11 Mar 2014 11:54:43 -0400 Subject: [PATCH] Bug fix --- modules/auth/user.go | 3 +++ templates/user/signup.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/auth/user.go b/modules/auth/user.go index 215cffedb..4059edfdd 100644 --- a/modules/auth/user.go +++ b/modules/auth/user.go @@ -20,6 +20,9 @@ func SignedInId(session sessions.Session) int64 { return 0 } if s, ok := userId.(int64); ok { + if _, err := models.GetUserById(s); err != nil { + return 0 + } return s } return 0 diff --git a/templates/user/signup.tmpl b/templates/user/signup.tmpl index cfbf27fd9..ba41b0c9b 100644 --- a/templates/user/signup.tmpl +++ b/templates/user/signup.tmpl @@ -7,7 +7,7 @@
- +
@@ -21,7 +21,7 @@
- +