Phauxth v0.15.0 Phauxth.Confirm.Login View Source

A custom login function which also checks to see if the user’s account has been confirmed yet.

Link to this section Summary

Functions

Check the user is confirmed before checking the password

Prints out a log message and returns {:ok, user} or {:error, message}

Verify a user’s password

Link to this section Functions

Link to this function check_pass(user, password, crypto, crypto_opts) View Source

Check the user is confirmed before checking the password.

If confirmed_at: nil is in the user struct, this function will return {:error, message}. Otherwise, it will run the default check_pass function.

Prints out a log message and returns {:ok, user} or {:error, message}.

Link to this function verify(params, user_context, opts \\ []) View Source

Verify a user’s password.