View Source GlificWeb.API.V1.RegistrationController (Glific v5.1.6)

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

verifying google captcha only when token is passed

Link to this section Functions

Link to this function

create_and_send_verification_code(contact)

View Source
@spec create_and_send_verification_code(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
@spec reset_password(Plug.Conn.t(), map()) :: Plug.Conn.t()

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

Link to this function

send_otp(conn, user_params)

View Source
@spec send_otp(Plug.Conn.t(), map()) :: Plug.Conn.t()

verifying google captcha only when token is passed