nunobernardes99
On 1.8+, when we generate an authentication system with mix phx.gen.auth we can make use of magic link login which is amazing and a great addition to the ecosystem. On the projects I’ve been testing out 1.8, after I do the mix phx.gen.auth I always remove all password related code as I personally prefer to have a complete password-less system. What if mix phx.gen.auth accepted an option --only-pwless or something similar that would ditch out the password related code right from the generation?
Trending in Proposals: Ideas
We are seeing a lot of warning logs like this:
navigate event to "https://someurl" failed because you are redirecting across live_sessio...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
steffend
We could do that, but with the current generators every option we add needs to be carefully maintained, therefore it is a delicate balance.
The Phoenix generators support reading files from your own
privdirectory instead, so you could overwrite the original ones and reuse your modifications across projects by copying over the files from priv before runningmix phx.gen.auth. So that is what I would recommend for now.nunobernardes99
Thank you for the feedback!
rhcarvalho
This is so powerful that sometimes I think whether it is easy enough to discover it’s an option.
I think I first learned about this in a blog post, then some threads in this forum.
https://hexdocs.pm/phoenix/mix_tasks.html
Talks about the mix tasks, but I didn’t find a mention to overriding the templates. Shall we add a section about customizing the templates?
Is there something official elsewhere?