|
|
|
@ -59,7 +59,7 @@ func greetUser(w http.ResponseWriter, r *http.Request) {
@@ -59,7 +59,7 @@ func greetUser(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
loggedIn, username := detectUser(r, "greetUser") |
|
|
|
|
|
|
|
|
|
if loggedIn { |
|
|
|
|
fmt.Fprintf(w, strings.Replace(bodyWrapper(r, "loggedIn"), "$USER", username, -1)) |
|
|
|
|
fmt.Fprintf(w, strings.Replace(pageBuilder(r, "loggedIn"), "$USER", username, -1)) |
|
|
|
|
} else { |
|
|
|
|
fmt.Fprintf(w, pageBuilder(r, "home")) |
|
|
|
|
} |
|
|
|
|