Compare commits
8 commits
a6f9de3eab
...
845f347fac
| Author | SHA1 | Date | |
|---|---|---|---|
| 845f347fac | |||
| 2accfffa46 | |||
| 24d6020117 | |||
| 798ea7d227 | |||
| 257995a1a3 | |||
| 25f061a31c | |||
| 2c032e7fda | |||
| fc557f96cc |
2 changed files with 2 additions and 10 deletions
|
|
@ -7,9 +7,9 @@ defmodule Mv.Accounts do
|
|||
|
||||
resources do
|
||||
resource Mv.Accounts.User do
|
||||
define :create_user, action: :create_user
|
||||
define :create_user, action: :create
|
||||
define :list_users, action: :read
|
||||
define :update_user, action: :update_user
|
||||
define :update_user, action: :update
|
||||
define :destroy_user, action: :destroy
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -63,14 +63,6 @@ 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