Glific v0.3.1 GlificWeb.API.V1.RegistrationController View Source

The Pow User Registration Controller

Link to this section Summary

Functions

Function for generating verification code and sending otp verification message

Controller function for reset password It also verifies OTP to authorize the request

Link to this section Functions

Link to this function

create_and_send_verification_code(organization_id, contact)

View Source

Specs

create_and_send_verification_code(integer(), Glific.Contacts.Contact.t()) ::
  {:ok, String.t()}

Function for generating verification code and sending otp verification message

Link to this function

reset_password(conn, map)

View Source

Specs

reset_password(Plug.Conn.t(), map()) :: Plug.Conn.t()

Controller function for reset password It also verifies OTP to authorize the request