View Source ZoonkWeb.Plugs.AgeChecker (Zoonk v0.2.0-alpha)

Check if a user has reached the required age to view this application.

Link to this section Summary

Functions

Redirect users when they don't meet the minimum age requirement.

Only users who are 13 years old or older can view this application.

Link to this section Functions

@spec age_check(Plug.Conn.t(), Keyword.t()) :: Plug.Conn.t()

Redirect users when they don't meet the minimum age requirement.

Link to this function

authorized?(date_of_birth)

View Source
@spec authorized?(Date.t()) :: boolean()

Only users who are 13 years old or older can view this application.