by WorkLifeBalance · 8y ago · 0 comments
Let's say I want to develop a multi user todo and I've followed the examples and now have some Users who log in entering a password.
Someone points out that I shouldn't be storing passwords in plain text so I want to store them hashed.
Despite there being hints in the documentation that this is possible (migrations shows the password hashed), it's not clear how to carry out this kind of change.
A walkthrough of making a change would help convey the use case much better than just templates of "this incantation produces this output".
People often copy from such tutorials and will then end up with insecure password storage.
/* 'Users': collection { 'Password': text }*/
How does the platform know to hash that? Is it looking for magic property names?
So to clarify, it's this password: declaration which tells the framework to hash the input?
users
dynamic : . 'Users'
password : . 'Password'
interfaces
root {
}
numerical-types
Is this defined anywhere within the project or is this framework magic? (Or "glue" if you don't like the term magic). password is not mentioned again anywhere in the documentation, I'd like to understand how the framework knows to hash the input.I doubt they will ever care about any of that. a "side loaded application" will likely be the answer to most of those comments.