code_corps v0.0.1 CodeCorps.User View Source

This module defines a user of the Code Corps app.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %CodeCorps.User{github_email: term(), type: term(), sign_up_context: term(), user_roles: term(), biography: term(), github_user: term(), id: term(), categories: term(), stripe_platform_card: term(), organizations: term(), inserted_at: term(), stripe_platform_customer: term(), website: term(), github_avatar_url: term(), slugged_route: term(), updated_at: term(), github_user_id: term(), email: term(), stripe_connect_customers: term(), github_app_installations: term(), github_username: term(), skills: term(), twitter: term(), encrypted_password: term(), password: term(), username: term(), __meta__: term(), state_transition: term(), github_id_was: term(), github_auth_token: term(), github_app_installation: term(), first_name: term(), last_name: term(), github_id: term(), state: term(), admin: term(), stripe_connect_subscriptions: term(), default_color: term(), password_confirmation: term(), cloudinary_public_id: term(), roles: term(), project_users: term(), user_skills: term(), user_categories: term()}

Link to this section Functions

Link to this function apply_state_transition(changeset, map) View Source
Link to this function changeset(struct, params \\ %{}) View Source

Builds a changeset based on the struct and params.

Link to this function check_email_availability(email) View Source
Link to this function check_username_availability(username) View Source

Returns full name of the given user.

Link to this function registration_changeset(struct, params) View Source

Builds a changeset for registering the user.

Link to this function reset_password_changeset(struct, params) View Source
Link to this function update_changeset(struct, params) View Source