Openmaize v0.16.1 Openmaize.ConfirmTools

Functions to be used with the Openmaize.Confirm module.

Summary

Functions

Generate a confirmation token and a link containing the email address and the token

Functions

gen_token_link(user_id, unique_id \\ :email)

Generate a confirmation token and a link containing the email address and the token.

The link is used to create the url that the user needs to follow to confirm the email address.

The user_id is the actual name or email address of the user, and unique_id refers to the type of identifier. For example, if you want to use username=fred in your link, you need to set the unique_id to :username. The default unique_id is :email.