Comments (9)
Closed via 731958c
from flask-security-fork.
It looks fine. Just make sure that you include tests and docs. Thanks!
from flask-security-fork.
Unfortunately, I couldn't figure out why the test is not passing.
`
| assert datastore.add_role_to_user(user, 'editor') is True
| > assert datastore.add_role_to_user(user, 'editor') is False
| E assert True is False
`
@illume Does the method add_role_to_user work for you?
from flask-security-fork.
@krahser note, the SQLAlchemyUserDatastore had some changes too. Thanks heaps for doing this!
from flask-security-fork.
Yes, I saw that, but it's not necessary. If you make the query as is defined it works too.
Just to be sure I test both ways and I get the same error.
from flask-security-fork.
I realize that the mistake was in the backref definition on the user model.
It's alredy pushed. Now all the tests pass and It's also the beginning of docs in my fork.
I hope to finish this tomorrow.
from flask-security-fork.
I made some changes here: https://github.com/illume/flask-security-fork/tree/flask_sqlalchemy_session
There was some failures with old versions of flask-sqlalchemy. http://stackoverflow.com/questions/20201809/sqlalchemy-flask-attributeerror-session-object-has-no-attribute-model-chan
I added a fix for that in the branch. All the tests pass on travis now.
from flask-security-fork.
Cool. I'll leave the rest to you. See "def commit" here: https://github.com/illume/flask-security-fork/tree/flask_sqlalchemy_session
from flask-security-fork.
Thanks!
from flask-security-fork.
Related Issues (10)
- SECURITY_CONFIRMABLE config mixup between confirm password and confirm email HOT 2
- User enumeration at login HOT 3
- i18n bug UndefinedError: '_' is undefined HOT 4
- PyPI release schedule HOT 1
- Cookie capturing vulnerability HOT 2
- Email confirmation behavior HOT 3
- Closing fork
- Do you have an example using pony ? HOT 1
- Allow optional `extra_validators` parameter in `validate` methods of `forms.py` HOT 3
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 flask-security-fork.