mirror of
https://github.com/rjNemo/auth
synced 2026-06-06 08:26:39 +00:00
14 lines
268 B
Go
14 lines
268 B
Go
package server
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func (s *Server) loginHandler() http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
log.Println("Login request received")
|
|
s.loggedIn = true
|
|
http.Redirect(w, r, "/in", http.StatusSeeOther)
|
|
}
|
|
}
|