Comments (6)
Strange, let me check - do you have a line number for the code causing the error?
from veil.
Ligne 62 of the veil.ex
defp new_session_url(conn, unique_id) do
cur_uri = Phoenix.Controller.endpoint_module(conn).struct_url()
cur_path = AppWeb.Router.Helpers.session_path(conn, :create, unique_id)
AppWeb.Router.Helpers.url(cur_uri) <> cur_path
end
from veil.
I've fixed this - there's a new version up now. Things I changed:
- Removed
get("/sessions/new/:request_id", SessionController, :create)
from the Router. - Changed
cur_path = TestWeb.Router.Helpers.session_path(conn, :create, unique_id)
tocur_path = TestWeb.Router.Helpers.session_path(conn, :create, [request_id: unique_id])
Please let me know if that works.
from veil.
No sorry, still got the same error
from veil.
Did you make the change to cur_path = TestWeb.Router.Helpers.session_path(conn, :create, [request_id: unique_id])
? The error was happening because unique_id
is a string rather than a list. But if you replace it with [request_id: unique_id]
then it's a list and therefore implements the behaviour Enumerable. That will then generate the link correctly.
from veil.
Didn't understood that i need to make change, i thought that you were explaining what you've done ^^
OK for me it work great.
from veil.
Related Issues (16)
- The authenticate.ex plug has a placeholder project name HOT 2
- undefined function html?/0 HOT 3
- Texting instead of emailing? HOT 6
- Advice on test startup times HOT 7
- Is there a way to trigger a cache reload? HOT 3
- Phoenix 1.4 support? HOT 3
- Concrete example on how to reference the veil_user? HOT 8
- Umbrella support
- no function clause matching in Veil.verify/2 HOT 2
- Should Veil expect the email address along with the verification string to complete authentication?
- Clicking the Sign In link via local adapter causes Beam.smp to max out my CPU HOT 3
- Fresh install gets quite a few warnings and deprecations
- Ignoring unmatched topic "pos" in TestVailWeb.UserSocket HOT 2
- Feature request - Authorised users HOT 2
- Veil.Secure fails when a conn does not hold an user-agent header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from veil.