nio_google_authenticator v2.1.2 NioGoogleAuthenticator.Changeset
This module allows a google authenticator secret to be inserted into an Ecto.changeset.
Link to this section Summary
Functions
Adds a secret to an %Echo.Changeset{} if one does not exist
Adds a secret to an %Echo.Changeset{}
Link to this section Functions
Link to this function
add_secret_to_changeset(changeset, attribute_name \\ :ga_secret)
Adds a secret to an %Echo.Changeset{} if one does not exist
A custom attribute atom is used if passed otherwise defaults to :ga_secret
Link to this function
regenerate_secret_in_changeset(changeset, attribute_name \\ :ga_secret)
Adds a secret to an %Echo.Changeset{}
An custom attribute is used if passed otherwise defaults to :ga_secret