Comments (2)
I'd check test/support/accounts_factory.ex:40
and see what the code is attempting to do.
The key seems to be:
Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
It seems like one of the primary keys or foreign keys that's being passed is still registered on the schema struct as an integer.
from authority_ecto.
Hey Daniel, thanks for coming back to me.
I did investigate the accounts_factory
like you suggested (iirc that called a create_user
function, which then went into this module), but after a couple of hours of looking at it I couldn't nut it out.
In the end I've decided to just go with a non-umbrella app to reduce the complexity - its only my second elixir project after all.
I'll close this out now, but I'll still be following what you at infinite red are doing with elixir - keep up the good work 😄
from authority_ecto.
Related Issues (15)
- Extract Authority.Template HOT 1
- The token deletion in update_user seems a little overzealous
- File structure? HOT 1
- put_encrypted_password/3
- Typespecs aren't quite right HOT 3
- Avoid reading/deleting the locks on every request
- validate_secure_password/2 HOT 3
- Store locking information on User Schema HOT 1
- Accounts.get_token returns hashed token instead of raw token HOT 1
- Missing @impl for function get_token/1 callback (specified in Authority.Tokenization)
- Move to Ecto 3.0
- put_secure_token/2 HOT 4
- put_token_expiration/4
- Prepare documentation for 0.1.0 release
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 authority_ecto.