ExVenture.Users (ExVenture v0.1.0) View Source

Users context

Link to this section Summary

Functions

Check if the user is an admin

Create a new user

Changeset for updating a user

Find an user by the token

Get a user by id

Changeset for a session or registration

Reset the user's password based on a valid reset token

Start to reset a user's password

Update a user's information

Validate the user signing in

Confirm an email address

Link to this section Functions

Check if the user is an admin

Link to this function

change_password(user, current_password, params)

View Source

Change the user's password

First validates the password

Create a new user

Changeset for updating a user

Find an user by the token

Get a user by id

Changeset for a session or registration

Link to this function

reset_password(token, params)

View Source

Reset the user's password based on a valid reset token

Link to this function

start_password_reset(email)

View Source

Start to reset a user's password

Update a user's information

Link to this function

validate_login(email, password)

View Source

Validate the user signing in

Confirm an email address