ch11.6
This commit is contained in:
@@ -40,3 +40,7 @@ func (app *application) decodePostForm(r *http.Request, snippetForm any) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (app *application) isAuthenticated(r *http.Request) bool {
|
||||
return app.sessionManager.Exists(r.Context(), "authenticatedUserID")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user