Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pgcrypto for user password. #48

Closed
aars opened this issue Jan 7, 2015 · 2 comments
Closed

Use pgcrypto for user password. #48

aars opened this issue Jan 7, 2015 · 2 comments

Comments

@aars
Copy link

aars commented Jan 7, 2015

I'd like to use Postgres' built-in pgcrypto to encyrpt/hash/check user credentials. Is this possible? As far as I can tell strongloop always hashes passwords before looking them up in the DB. I would like Postgres to handle that.

Is there maybe a method I could override where I can write my own SQL query?

Edit: I realize that this question is very much related to the default User model setup. I've skipped this "problem" for now and used the default methods provided by Strongloop. Will be modifying that in the future.

I would like to know/find out how I can write my own SQL queries in the future, or at least, use some of Postgres' specific features. The connection via jugglingdb seems very generic. I'm sure it's possible to find the DB connection via app.datasources['postgres-db'], but I'm not sure if it's a good idea.

@aars
Copy link
Author

aars commented Jan 12, 2015

Figured this part out (the custom queries).

@ghost
Copy link

ghost commented Oct 28, 2015

@aars would be good to know how did you end up implementing this considering #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant