Compare commits
8 commits
845f347fac
...
a6f9de3eab
| Author | SHA1 | Date | |
|---|---|---|---|
| a6f9de3eab | |||
| ff9b3bc5f3 | |||
| 55943d0640 | |||
| 778700d5c3 | |||
| 80903a48fe | |||
| 0cc740b5b6 | |||
| 4846961d7a | |||
| d78d416d89 |
2 changed files with 10 additions and 2 deletions
|
|
@ -7,9 +7,9 @@ defmodule Mv.Accounts do
|
|||
|
||||
resources do
|
||||
resource Mv.Accounts.User do
|
||||
define :create_user, action: :create
|
||||
define :create_user, action: :create_user
|
||||
define :list_users, action: :read
|
||||
define :update_user, action: :update
|
||||
define :update_user, action: :update_user
|
||||
define :destroy_user, action: :destroy
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,14 @@ defmodule Mv.Accounts.User do
|
|||
actions do
|
||||
defaults [:read, :create, :destroy, :update]
|
||||
|
||||
create :create_user do
|
||||
accept [:email]
|
||||
end
|
||||
|
||||
update :update_user do
|
||||
accept [:email]
|
||||
end
|
||||
|
||||
# Admin action for direct password changes in admin panel
|
||||
# Uses the official Ash Authentication HashPasswordChange with correct context
|
||||
update :admin_set_password do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue