View Source mix ash_authentication.add_strategy (ash_authentication v4.3.6)
Adds the provided strategy or strategies to your user resource
This task will add the provided strategy or strategies to your user resource.
The following strategies are available. For all others, see the relevant documentation for setup
password
- Register and sign in with a username/email and a password.magic_link
- Register and sign in with a magic link, sent via email to the user.
Example
mix ash_authentication.add_strategy password
Options
--user
,-u
- The user resource. Defaults toYourApp.Accounts.User
--identity-field
,-i
- The field on the user resource that will be used to identify the user. Defaults toemail
Summary
Functions
Callback implementation for Igniter.Mix.Task.igniter/2
.
Functions
Callback implementation for Igniter.Mix.Task.igniter/2
.