sentinel v2.0.0 Sentinel.Controllers.Json.AccountController

Handles the account show and update actions for JSON APIs

Summary

Functions

Get the account data for the current user Responds with status 200 and body view show JSON

Update email address or user params of the current user. If the email address should be updated, the user will receive an email to his new address. The stored email address will only be updated after clicking the link in that message. Responds with status 200 and the updated user if successfull

Functions

show(conn, params, current_user, claims \\ %{})

Get the account data for the current user Responds with status 200 and body view show JSON

update(conn, map, current_user, claims)

Update email address or user params of the current user. If the email address should be updated, the user will receive an email to his new address. The stored email address will only be updated after clicking the link in that message. Responds with status 200 and the updated user if successfull.