|
|
|
@ -76,9 +76,11 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) {
@@ -76,9 +76,11 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
loginMessage := fmt.Sprintf("**%s** is now authenticated as **%s**", request.DisplayName, u.DisplayName) |
|
|
|
|
if err := chat.SendSystemAction(loginMessage, true); err != nil { |
|
|
|
|
log.Errorln(err) |
|
|
|
|
if request.DisplayName != u.DisplayName { |
|
|
|
|
loginMessage := fmt.Sprintf("**%s** is now authenticated as **%s**", request.DisplayName, u.DisplayName) |
|
|
|
|
if err := chat.SendSystemAction(loginMessage, true); err != nil { |
|
|
|
|
log.Errorln(err) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/", http.StatusTemporaryRedirect) |
|
|
|
|